Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guoyongfeng/react-demo
React demos
https://github.com/guoyongfeng/react-demo
Last synced: 1 day ago
JSON representation
React demos
- Host: GitHub
- URL: https://github.com/guoyongfeng/react-demo
- Owner: GuoYongfeng
- Created: 2015-11-19T11:48:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-21T03:44:08.000Z (about 9 years ago)
- Last Synced: 2024-05-28T00:30:02.884Z (7 months ago)
- Language: JavaScript
- Size: 1.7 MB
- Stars: 10
- Watchers: 2
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React基础学习
> 本仓库代码仅供学习交流使用
配合学习文档请点[这里](http://guoyongfeng.github.io/idoc/html/%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB/React%E6%8A%80%E6%9C%AF%E5%88%86%E4%BA%AB.html)
## 使用说明
- 使用`bower`下载React等前端资源,存放在`vendors`目录
- 使用`babel`解析的`JSX`语法,并将命令配置在`package.json`中,可直接执行以下命令进行编译:```
npm run build
```如果你还没有安装babel,请执行:
```
// 最新版的babel需要安装babel和babel-cli
npm install babel babel-cli -g
// 6.0版本之前的直接安装babel即可
npm install babel -g
```## 目录说明
- `app`使用jsx语法编写的源码
- `build`使用babel编译后的js文件
- `vendors`下载的第三方资源
- `demos`html示例文件