- 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
This commit is contained in:
SanderSpies
2013-09-19 06:48:38 +02:00
parent 1924b7c945
commit cd79ed32cb
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ We provide CDN-hosted versions of React [on our download page](/react/downloads.
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.
## <a id="jsx"></a>JSX
## JSX
### In-browser JSX Transform
+1 -3
View File
@@ -80,9 +80,7 @@ runScripts = function() {
return script.type === 'text/jsx';
});
if(jsxScripts.length){
console.warn("You are using unoptimized JSX (to optimize for production see: http://facebook.github.io/react/docs/tooling-integration.html#jsx)");
}
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");
jsxScripts.forEach(function(script) {
if (script.src) {