________ _______ ________ ________ _________
|\ __ \|\ ___ \ |\ __ \|\ ____\\___ ___\
\ \ \|\ \ \ __/|\ \ \|\ \ \ \___\|___ \ \_|
\ \ _ _\ \ \_|/_\ \ __ \ \ \ \ \ \
\ \ \\ \\ \ \_|\ \ \ \ \ \ \ \____ \ \ \
\ \__\\ _\\ \_______\ \__\ \__\ \_______\ \ \__\
\|__|\|__|\|_______|\|__|\|__|\|_______| \|__|
react-template。使用 Vite + React + TypeScript + React-Router + Redux-Toolkit + Material-UI + react-i18next
开发。支持多语言和暗黑模式。
- Vite - 构建工具
- React - 框架
- React Router - 路由
- React Redux - 状态管理
- Redux Toolkit - 编写 Redux 逻辑的方法
- Material UI - ui 库
- react-i18next 多语言
yarn
yarn dev
yarn deploy
将本项目用户新建项目时,注意将.env 文件中的VITE_BASE=/react-template/
改为VITE_BASE=/
,原因见github-pages,.github/workflows 中的部署至 github-pages 也改为自己的部署。