htmlreactjsbower

Where is the JSXTransformer.js after Bower Install?


In order to use react, I need to have the following in my html file

<script src="http://fb.me/react-0.12.2.min.js"></script>
<script src="http://fb.me/JSXTransformer-0.12.2.js"></script>

I want to user local bower components instead of these links. So I installed react using bower install react

However, when I go into the react directory in my bower components, I do not see a 'JSXTransformer.js' file.

Where is this file? Why was it not installed via bower?


Solution

  • It appears that JSXTransformer has been deprecated. The official article suggests using 'babel' instead.

    https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html