- removed creation of the id within the tooling integration doc (expect this to be done by @zpao's pull request) - removed the if statement and now always provide a warning message (as proposed by @spicyj) - improved the warning message
- removed creation of the id within the tooling integration doc (expect this to be done by @zpao's pull request) - removed the if statement and now always provide a warning message (as proposed by @spicyj) - improved the warning message
SanderSpies committed
Sep 19, 2013 at 06:48 UTC
cd79ed32cbae87d42366d4707e5fb15d49a64d7a
2 files changed
+2
-4
docs/docs/08-tooling-integration.md
+1
-1
@@ -20,7 +20,7 @@ We provide CDN-hosted versions of React [on our download page](/react/downloads.
20
21
We have instructions for building from `master` [in our GitHub repository](https://github.com/facebook/react). We build a tree of CommonJS modules under `build/modules` which you can drop into any environment or packaging tool that supports CommonJS.
22
23
-## <a id="jsx"></a>JSX
23
+## JSX
24
25
### In-browser JSX Transform
26
vendor/browser-transforms.js
+1
-3
@@ -80,9 +80,7 @@ runScripts = function() {
80
return script.type === 'text/jsx';
81
});
82
83
- if(jsxScripts.length){
84
- console.warn("You are using unoptimized JSX (to optimize for production see: http://facebook.github.io/react/docs/tooling-integration.html#jsx)");
85
- }
83
+ console.warn("You are using the in-browser JSX transformer. Be sure to precompile your JSX for production - http://facebook.github.io/react/docs/tooling-integration.html#JSX");
84
85
jsxScripts.forEach(function(script) {
86
if (script.src) {