5 ms·
You've got a link to `@babel/standalone/babel.min.js` and a `<script type="text/babel">`. Are those not being used at all? Because that's definitely "transpilin
by acemarke 5y ago
You've got a link to `@babel/standalone/babel.min.js` and a `<script type="text/babel">`. Are those not being used at all? Because that's definitely "transpiling", just not with an external tool.
Did you start this file by copy-pasting the React single-file HTML template from the "Getting Started" page?
- __ryan__ 5y agoYep, Babel is transpiling that script tag. This is a cool pattern, useful for testing and whatnot, but nothing new and not recommended for production. Another example of this pattern is Paper.js & PaperScript [0] [0] http://paperjs.org/tutorials/getting-started/paperscript-interoperability/ http://paperjs.org/tutorials/getting-started/paperscript-int...
- mokanfar 5y ago>not recommended for production. Rhetorical question: What percent of use cases is it not recommended for use in production?
- tehbeard 5y agoThe only use case babel in browser I can think of is either interactive tutorial/learning for end users on browser features or React JSX (to snuff out the whole getting a dev-env. setup), and interactive playgrounds like storybook.js to allow someone to compose a mockup, again without a git clone / do_x() / add / commit / push.