-
Notifications
You must be signed in to change notification settings - Fork 0
jimwjl666/ReactDemo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
一、环境安装 create by wjl in 20160824 1、 npm install babel -g npm install webpack -g npm install webpack-dev-server -g 2、 创建文件目录 your project name npm init 3、 npm install react --save-dev npm install react-dom --save-dev npm install webpack --save-dev npm install webpack-dev-server --save-dev npm install babel-core --save-dev npm install babel-loader --save-dev npm install babel-preset-react --save-dev npm install babel-preset-es2015 --save-dev 4、 webpack.config.js 5、 打开 package.json 替换 test" "echo \"Error: no test specified\" && exit 1" 为 "start": "webpack-dev-server --hot" 6、 运行npm start 装完这堆东西如果不能热启动需要重启电脑尝试 7、react-router参考 http://react-guide.github.io/react-router-cn/docs/Introduction.html
About
react结合webpack的入门示例
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published