Below you will find pages that utilize the taxonomy term “React”
December 3, 2015
React相关学习资料
"\u003cp\u003eReact 入门实例教程: \u003ca href=\"http://www.ruanyifeng.com/blog/2015/03/react.html\"\u003ehttp://www.ruanyifeng.com/blog/2015/03/react.html\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReact 入门实例教程实例: \u003ca href=\"https://github.com/ruanyf/react-demos\"\u003ehttps://github.com/ruanyf/react-demos\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReact+Babal+WebPack: \u003ca href=\"https://github.com/ruanyf/react-babel-webpack-boilerplate\"\u003ehttps://github.com/ruanyf/react-babel-webpack-boilerplate\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReact Router 使用教程: \u003ca href=\"http://www.ruanyifeng.com/blog/2016/05/react_router.html\"\u003ehttp://www.ruanyifeng.com/blog/2016/05/react_router.html\u003c/a\u003e \u003ca href=\"https://github.com/reactjs/react-router\"\u003ehttps://github.com/reactjs/react-router\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReact学习资料: \u003ca href=\"http://www.infoq.com/cn/react1/\"\u003ehttp://www.infoq.com/cn/react1/\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eReact中CSS样式模块: \u003ca href=\"https://css-modules.github.io/webpack-demo/\"\u003ehttps://css-modules.github.io/webpack-demo/\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e深入浅出React(一):React的设计哲学 – 简单之美 \u003ca href=\"http://www.infoq.com/cn/articles/react-art-of-simplity\"\u003ehttp://www.infoq.com/cn/articles/react-art-of-simplity …\u003c/a\u003e\u003c/p\u003e"
December 2, 2015
React开发中的常见问题
"\u003cp\u003e当你在写react的时候报了类似于这样子的错:\u003cstrong\u003eEach child in an array or iterator should have a unique “key” prop.Check the render method of \u003ccode\u003exxxx\u003c/code\u003e. See \u003ca href=\"https://fb.me/react-warning-keys\"\u003ehttps://fb.me/react-warning-keys\u003c/a\u003e for more information.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e原因是这样子的:\u003cstrong\u003eReact 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.\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003e解决办法只要在循环的每个子项添加一个key就行了,代码如下:\u003c/p\u003e\n\u003cpre tabindex=\"0\"\u003e\u003ccode\u003evar names = [\u0026#39;Alice\u0026#39;, \u0026#39;Emily\u0026#39;, \u0026#39;Kate\u0026#39;];\n\nReactDOM.render(\n \u0026lt;div\u0026gt;\n {\n names.map(function (name, …\u003c/code\u003e\u003c/pre\u003e"