# react-pxwk **Repository Path**: preedom/react-pxw ## Basic Information - **Project Name**: react-pxwk - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-03 - **Last Updated**: 2025-04-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
简体中文 | English
## ⚡️ Vite 版本 - react-template-vite: https://github.com/guokaigdg/react-template-vite ## 🔗 在线 Demo - 在线预览 (PC 端) [react-enterprise-template](https://guokaigdg.github.io/react-enterprise-template/) - 在线预览(移动端) [react-template-mobile](https://github.com/guokaigdg/react-template-mobile) ## 👨🏻💻 项目说明 - 移动端模板:[react-template-mobile](https://github.com/guokaigdg/react-template-mobile) - react 模板, 一个比 CRA 更丰富的模板 - 开发配置文档说明 [React18 + webpack5 + TypeScript4 + react-router + Mobx](https://juejin.cn/post/7197790401495121977) - 项目创建教程 [《从 0 到 1 搭建一个 React 项目开发模板 》](https://juejin.cn/post/7223267430231326778) ## 🪅 特性 - 📦 开箱即用,无需配置 - 📝 全面注释说明,学习低成本 - 🚀 启动编译迅速 - 🌱 极易定制, 拓展容易 ## 🚀 技术栈 [](https://github.com/facebook/react/) [](https://github.com/microsoft/TypeScript)[](https://github.com/facebook/react/) [](https://github.com/axios/axios) [](https://github.com/mobx) [](https://github.com/remix-run/react-router) []() - React v19 - react-dom v19 - TypeScript v4 - webpack v5 - axios v1 - mobx v6 - mobx-react-lite v3 - react-router v7 ## 🎄 陆续更新内容: - 新增样式 ✅ [config: 🔧 新增样式文件(css/less/sass/postCss)处理](https://github.com/guokaigdg/react-enterprise-template/commit/11fb415bac609dfa7474a1ee2db93ccb4a350a51) - 代码规范 ✅ [config: 🔧 新增 Prettier/ESlint/StyleLint/EditorConfig 代码规范](https://github.com/guokaigdg/react-enterprise-template/commit/87dd1ca333f81203dd245a6eb40479a0745f096f) - 路由 ✅ [config: 🔧 新增路由管理 react-router-dom v6](https://github.com/guokaigdg/react-enterprise-template/commit/239446d0709eb52bad2b48af4983eef91c49f60d) - 网络请求 ✅ [feat: ✨ 新增网络请求 Axios v1](https://github.com/guokaigdg/react-enterprise-template/commit/27cd67f641d5ecf53b89770195f75bd32bccce46) - 数据共享 ✅ [feat: ✨ 新增状态管理 Mobx v6](https://github.com/guokaigdg/react-enterprise-template/commit/992e1884943d4f8bda836f48c60df473418397d7) - React Hook 规则 ✅ [feat: ✨ 新增 react hooks 规则检查](https://github.com/guokaigdg/react-enterprise-template/commit/15346c07a9ffd74f69dd1bb0dd6a4a42aa72df57) - 封装全局 SVG 组件 ✅ [feat: ✨ 封装全局 SVG 组件](https://github.com/guokaigdg/react-enterprise-template/commit/066fc6ff28c1ac3b0d6422ebda8d59cdf9275d3a) - 移动端适配 ✅ [feat: ✨ 增加移动端适配方案: postcss-px-to-viewport](https://github.com/guokaigdg/react-enterprise-template/commit/78b10e2d0bada75f4043eaa43aecffb2973fd357) - Mobx 使用区别说明 ✅ [feat: ✨ 增加 makeObservable 与 makeAutoObservable 说明与使用示例](https://github.com/guokaigdg/react-enterprise-template/commit/11cee6d4e2f24eebe2d3eec3357d73eca7f9aa8c) - mobx-react-lite 优化 ✅ [feat: ✨ 新增 mobx-react-lite 中 observer 与 Observer 使用与优化](https://github.com/guokaigdg/react-enterprise-template/commit/fe5620b4281e49d44cb25a945a6ba04f125f3f29) - 新增 UI 设计资料 ✅ [docs: 📝 更新开发设计资料参考文档](https://github.com/guokaigdg/react-enterprise-template/commit/a75a6a705a0e2367dbfcef5e5d562e72b63057df) - 现代化的 CSS 样式重置 ✅ [style: 🎨 A Modern CSS Reset 现代化的 CSS 样式重置](https://github.com/guokaigdg/react-enterprise-template/commit/71568e774862fb7430a48f2447ecb6f31b53078b) ## ⌛️ 安装项目依赖 - `node` >= 16.0.0 - `npm` >= 7.0.0 - `yarn` >= 1.22.17 ``` npm install ``` ``` yarn ``` ``` pnpm install ``` ## 🚀 运行项目 ``` npm $ npm run start yarn $ yarn dev ``` ## 📦 打包编译 ``` npm run build:qa // 测试环境 npm run build:prod // 线上环境 ``` ## 🏷 分支说明 | 分支 | 说明 | | ------ | ------------- | | main | 主分支 | | dev | 开发分支 | | deploy | demo 部署分支 | ## 代码提交规范 ``` git