Below you will find pages that utilize the taxonomy term “react”
December 3, 2015
React相关学习资料
"React 入门实例教程: http://www.ruanyifeng.com/blog/2015/03/react.html\nReact 入门实例教程实例: https://github.com/ruanyf/react-demos\nReact+Babal+WebPack: https://github.com/ruanyf/react-babel-webpack-boilerplate\nReact Router 使用教程: http://www.ruanyifeng.com/blog/2016/05/react_router.html https://github.com/reactjs/react-router\nReact学习资料: http://www.infoq.com/cn/react1/\nReact中CSS样式模块: https://css-modules.github.io/webpack-demo/\n深入浅出React(一):React的设计哲学 – 简单之美 http://www.infoq.com/cn/articles/react-art-of-simplity …"
December 2, 2015
React开发中的常见问题
"当你在写react的时候报了类似于这样子的错:Each child in an array or iterator should have a unique “key” prop.Check the render method of xxxx. See https://fb.me/react-warning-keys for more information.\n原因是这样子的:React can’t know that your array is static, so you get the warning. The most practical thing to do here is to write something like.\n解决办法只要在循环的每个子项添加一个key就行了,代码如下:\nvar names = [\u0026#39;Alice\u0026#39;, \u0026#39;Emily\u0026#39;, \u0026#39;Kate\u0026#39;]; ReactDOM.render( \u0026lt;div\u0026gt; { names.map(function (name, key) { return \u0026lt;div …"