diff --git a/docs/web/hello_react/create_react_app.md b/docs/web/hello_react/create_react_app.md index c9ee089..ba58253 100644 --- a/docs/web/hello_react/create_react_app.md +++ b/docs/web/hello_react/create_react_app.md @@ -1,4 +1,8 @@ -# 创建 React 工程 +--- +sidebar_position: 1 +--- + +# 创建工程 使用 [Create React App](https://create-react-app.dev/docs/getting-started) 脚手架工具 diff --git a/docs/web/hello_react/start_react_app.md b/docs/web/hello_react/start_react_app.md new file mode 100644 index 0000000..fa0155b --- /dev/null +++ b/docs/web/hello_react/start_react_app.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 2 +--- + +# 启动项目 + +输入指令,切换到工程目录 + +``` +cd my-app +``` + +输入指令,启动工程 + +``` +npm start +``` + +![启动成功](./started_react.png) diff --git a/docs/web/hello_react/started_react.png b/docs/web/hello_react/started_react.png new file mode 100644 index 0000000..b2d1391 Binary files /dev/null and b/docs/web/hello_react/started_react.png differ