Skip to content

pandaoh/react-view

Repository files navigation

2023.5 更推荐 web_base

react-view-cross-platform

一个基于 React 的跨平台通用模板(移动/PC/Web),适用于项目基础框架搭建。

Technology Stack

  • React 17.x
  • Redux Toolkit
  • TypeScript
  • Less/Scss
  • ECharts
  • Ant Design 4.x
  • Vite 3.x
  • Cordova
  • Electron
  • EsLint
  • Prettier
  • Husky

移动端开发可自行引入 vConsole 调试

Use

git clone https://github.com/pandaoh/react-view.git

npm i -g js-xcmd
xcmd create-react-view [dir]

Development

  • npm install or npm run init

  • npm run dev or npm run dev:app or npm run dev:exe

Preview

  • npm run server or npm run server:app or npm run server:exe

Build

  • npm run build or npm run build:app or npm run build:exe

Code Check

npm run lint

Icon Handler

  • npm run install:electron-icon

  • npm run electron-icon

Docs

Others

Preview

  • 本人写的一个小 Demo,可以用于参考重构等等。

Ps:程序员最讨厌的两种行为,一种是别人不写文档,另一种是别人让我写文档。(0.0)