首页 > 其他 > 详细

react 练习参考

时间:2019-08-10 20:49:05      阅读:83      评论:0      收藏:0      [点我收藏+]

项目地址: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

react 练习参考

原文:https://www.cnblogs.com/DHclly/p/11332599.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!