11 ms·
That has been possible for some time with Babel[0] and was also referenced in the old React docs[1]. But, as stated there and in the sibling comment here, it's
by hobofan 4y ago
That has been possible for some time with Babel[0] and was also referenced in the old React docs[1]. But, as stated there and in the sibling comment here, it's not really suitable for production use.
[0]: https://babeljs.io/docs/babel-standalone#script-tags https://babeljs.io/docs/babel-standalone#script-tags
[1]: https://legacy.reactjs.org/docs/add-react-to-a-website.html#quickly-try-jsx https://legacy.reactjs.org/docs/add-react-to-a-website.html#...
- davnicwil 4y agoFrom the react docs: "it makes your website slow and isn’t suitable for production" I don't really like blanket statements like this or think they are appropriate. It's so counter to the spirit of the web. Like, what does 'slow' mean in an absolute statement like this? It depends entirely on the system and usecase. It's just code at the end of the day. If it works for you, go for it!
- knute 4y agoIt's interesting that this is your perception of "the spirit of the web" whereas other people are going to say that requiring JavaScript at all is "counter to the spirit of the web".