react
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
react [2021/09/30 10:43] – admin | react [2021/10/20 17:38] (当前版本) – admin | ||
---|---|---|---|
行 14: | 行 14: | ||
<code bash> | <code bash> | ||
npm install @craco/ | npm install @craco/ | ||
- | touch craco.config.js | ||
</ | </ | ||
- | <file craco.config.js | + | <code bash> |
+ | echo " | ||
+ | </ | ||
+ | < | ||
module.exports = {}; | module.exports = {}; | ||
</ | </ | ||
+ | |||
====== React Router ====== | ====== React Router ====== | ||
* https:// | * https:// | ||
行 25: | 行 28: | ||
<code bash> | <code bash> | ||
npm install react-router-dom --save | npm install react-router-dom --save | ||
+ | </ | ||
+ | |||
+ | ====== prettier ====== | ||
+ | * https:// | ||
+ | <code bash> | ||
+ | npm install --save-dev --save-exact prettier | ||
+ | </ | ||
+ | <file json .prettierrc.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | ====== lint-staged ====== | ||
+ | * https:// | ||
+ | |||
+ | **需要提前安装 prettier --save-dev 或者 eslint --save-dev** | ||
+ | <code bash> | ||
+ | npx mrm@2 lint-staged | ||
+ | </ | ||
+ | |||
+ | ====== MUI ====== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | <code bash> | ||
+ | npm install @mui/ | ||
+ | </ | ||
+ | |||
+ | ====== Form validator ====== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | <code bash> | ||
+ | npm install --save react-hook-form @hookform/ | ||
</ | </ | ||
行 32: | 行 71: | ||
<code bash> | <code bash> | ||
npm install axios --save | npm install axios --save | ||
+ | </ | ||
+ | |||
+ | ====== Lodash ====== | ||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | npm install --save lodash | ||
+ | </ | ||
+ | |||
+ | ====== date-fns ====== | ||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | npm install date-fns --save | ||
</ | </ | ||
react.1632969834.txt.gz · 最后更改: 2021/09/30 10:43 由 admin