i am just starting with Reactjs and was writing a simple component to display li tag and came across this error:
li
Unexpected token '<'
I have put the example at jsbin below http://jsbin.com/UWOquRA/1/edit?html,js,console,output
Please let me know what i am doing wrong.
I solved it using type = "text/babel"
<script src="js/reactjs/main.js" type = "text/babel"></script>
1.4m articles
1.4m replys
5 comments
56.9k users