One of the things that surprises people quite often is that Babel supports JSX out of the box.
Let me show you just how easy it is to switch:
Note: There are tons of ways to use Babel, I'll only list a few of them here. If you'd like to see a more complete list check out our Using Babel page.
In the Browser (docs)
Before:
<script type='text/jsx'></script>
After:
<script type='text/babel'></script>
In Browserify (docs)
Before:
Shell
$ browserify -t reactify main.js
After:
Shell
$ browserify -t babelify main.js
In Node (docs)
Before:
JavaScript
require('node-jsx').install();
After:
JavaScript
require('babel/register');