markfinger / python-react

Server-side rendering of React components
MIT License
1.62k stars 116 forks source link

Switch to babel from jsx #16

Closed defrex closed 9 years ago

defrex commented 9 years ago

Not sure if you want to do this, but I forked it for my own needs and figured it'd be good to create the PR.

This switches django-react from using Facebook's JSX compiler to using Babel. It supports JSX just the same, plus a lot more ES6/7 features. Since ES6 is backwards compatible with ES5, this seems like a good solution.

defrex commented 9 years ago

For more on Babel JSX support: https://babeljs.io/docs/usage/jsx/

markfinger commented 9 years ago

Thanks for that! :hatched_chick:

matthewryanscott commented 9 years ago

Very nice @defrex! :+1: