[TOC] ## 准备 升级到最新版phpstorm有完整的语法提示 ## 安装 npm 安装 ``` cnpm install -g create-react-app create-react-app my-app ``` cdn 安装 ``` 开发环境 <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script> <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script> //生产 <script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script> <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> ```