mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4357 from yangmillstheory/docfix
Warn against JSX transform failure for non-HTTP-served JSX
(cherry picked from commit e9915f0735)
This commit is contained in:
@@ -64,6 +64,8 @@ Then reference it from `helloworld.html`:
|
||||
<script type="text/jsx" src="src/helloworld.js"></script>
|
||||
```
|
||||
|
||||
Note that some browsers (Chrome, e.g.) will fail to load the file unless it's served via HTTP.
|
||||
|
||||
### Offline Transform
|
||||
|
||||
First install the command-line tools (requires [npm](https://www.npmjs.com/)):
|
||||
|
||||
Reference in New Issue
Block a user