项目地址:https://gitee.com/dhclly/icedog.react
React 练习项目
相关资源链接
- React官方 https://reactjs.org
- React 中国 https://zh-hans.reactjs.org
- React 文档 https://react.docschina.org
- React 入门实例教程 http://www.ruanyifeng.com/blog/2015/03/react.html
- React 入门教程Demo https://github.com/ruanyf/react-demos
- https://www.runoob.com/react
React 练习要求
- react
- react-dom
- browser.js or babel.js
相关辅助工具
- react dev tool
- visual studio code
- vsc 插件 preview on borwser
build目录说明
build 目录包含三个子目录
- babel-core
- react
- react-dom
- babel
通过链接可知
https://blog.csdn.net/wopelo/article/details/77844916
从Babel 6.0开始,不再直接提供浏览器版本,而是要用构建工具构建出来,这里可以通过安装老版本的babel-core模块来解决
npm install -g babel-core@old
这样子安装的版本应该是5.8.x,在node_modules会出现babel-core,里面就是关于babel的一切。
babel 目录下的js来自阮一峰的练习项目,应该是新版的编译结果集
https://github.com/ruanyf/react-demos/tree/master/build
https://raw.githubusercontent.com/ruanyf/react-demos/master/build/babel.min.js