Hi guys i am new to Reactjs and i can not get it to work.
First i got the unexpected token error that most reactjs starters have encountered, after reading the suggested solutions
i took all react js code and put it in a separate .js file like below
<script src="include_js/react.js" type="text/jsx"></script>than i added the suggested comments on top of the file
/** @jsx React.DOM */ ReactDOM.render( <h1>Hello</h1>, document.getElementById('indicators') );
The error is gone but i think react.js is'nt executed at all <h1>Hello</h1> is not added to "indicators" div. I see it is downloaded in network tab but not listed in source tab(Chrome Dev Tools)
NOTE: I have added both required plugins beforehand
<script src="react-0.14.8.min.js"></script>
<script src="react-dom-0.14.8.min.js"></script>
SOLVED
I changed type="text/jsx" to type="text/babel" also included <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js"></script> as @kujira mentioned. I also removed /** @jsx React.DOM */ as it is not needed anymore