Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It seems just a few years ago when I was testing out an early version of react, and it had the JSX compiler as a header include. Worked well enough, and with more modern JS supported by default, I wouldn't mind a newer version of this.

Instead of the increasingly silly attempts of coming up with weirder ways of doing server side rendering.



The newer (or perhaps still the same!) version of this is to add `babel-standalone` to the page [0] and put the `type="text/babel"` attribute on any `<script>` tags where you want to use JSX.

[0] https://reactjs.org/docs/add-react-to-a-website.html#quickly...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: