Files
stack/docs/web/hello_react/create_react_app.md
T

24 lines
440 B
Markdown

# 创建 React 工程
使用 [Create React App](https://create-react-app.dev/docs/getting-started) 脚手架工具
创建工程
继续之前使用过的 hello_world 项目,输入命令
```
npx create-react-app
```
> 受网络影响,这一步可能会等待较长时间。
或者使用
```
npx create-react-app --registry=https://registry.npmmirror.com
```
![输入命令](./enter_command.png)
![预览图](./created_react.png)