mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
- 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:
@@ -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
|
||||
|
||||
|
||||
Vendored
+1
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user