React.js: Example in tutorial not working

后端 未结 7 1100
陌清茗
陌清茗 2020-12-29 01:45

I\'m doing the React.js tutorial from http://facebook.github.io/react/docs/tutorial.html. Here are my files:

template.html:


    

        
7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 02:20

    I crete JSFiddle with your code, and its work. A think, try to move your scripts from head to before tut.js. Also, don't forget key property in list render component. I added it to Fiddle.

提交回复
热议问题