Reactjs:意外的标记“<"错误 [英] Reactjs: Unexpected token '<' Error
本文介绍了Reactjs:意外的标记“<"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚开始使用 Reactjs,正在编写一个简单的组件来显示li
标记并遇到此错误:
i am just starting with Reactjs and was writing a simple component to display
li
tag and came across this error:
意外的标记<"
我把例子放在下面的jsbinhttp://jsbin.com/UWOquRA/1/edit?html,js,console,output
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.
推荐答案
我用 type = "text/babel"
<script src="js/reactjs/main.js" type = "text/babel"></script>
这篇关于Reactjs:意外的标记“<"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文