5 points · by __app_dev__ · 6y ago · 7 comments
The jsxLoader.js script was
created to provide a fast method
for including React with JSX on
web pages and web apps with no
build process
React does not have a standalone script that does that?I was under the impression that these scripts do exactly that:
https://reactjs.org/docs/cdn-links.html
What am I missing?
All Demos and Templates use the React CDN links you listed.
The reason this file exists is so that JSX Code can be used in a browser without Babel. Babel Standalone can be used on pages but it is huge and takes a lot of memory and a few extra seconds to display the page. The [jsxLoader.js] file allows JSX to be used almost instantly.
If so what are you using other than Babel?
https://www.dataformsjs.com/examples/hello-world/en/react.ht...
If you view with any modern browser it will use `jsxLoader.js` as the compiler and if you use IE 11 or other old browsers it will download and use Polyfills with Babel Standalone.