# react-ssr **Repository Path**: evatxu/react-ssr ## Basic Information - **Project Name**: react-ssr - **Description**: a platform - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-07-30 - **Last Updated**: 2022-08-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # React SSR Example ## 前期准备 ### 搭建服务器环境 ```shell # 服务器代码编译工具准备 npm install @babel/core @babel/node @babel/preset-env @babel/preset-react node -D # 使用 express 作为服务器端语言 npm install express ``` 启动服务指令 ```shell # 启动服务器 npx babel-node server.js # 启动服务器并监听文件的改变 npx nodemon --exec npx babel-node server.js ``` ## State Management * "Small" state * useState * Context * "Medium" state * Recoil * "Large" state * Redux * MobX