ReactJS
快速入门
https://facebook.github.io/react/docs/installation.html
# 安裝命令行初始化工具
npm install -g create-react-app
# 使用初始化工具創建新項目
create-react-app hello-world
# 启动应用服务
cd hello-world
npm start
对于初学者而言,与旧版的 Starter Kit 相比,使用初始化工具不仅便捷,内容也更完善。不过创建一个项目所费时间不菲,“might take a couple of minutes”,只多不少!好在这个问题可以通过使用速度较快的 NPM registry 镜像来改善,例如:
npm config set registry https://registry.npm.taobao.org
在线资源
- Getting Started
https://facebook.github.io/react/docs/getting-started.html