react
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| react [2021/07/16 14:01] – admin | react [2021/10/20 17:38] (当前版本) – admin | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== | + | ====== |
| - | * https://yarnpkg.com/ | + | * https://zh-hans.reactjs.org/ |
| + | |||
| + | ====== React App ====== | ||
| + | * https:// | ||
| + | * https:// | ||
| <code bash> | <code bash> | ||
| - | npm install | + | npx create-react-app my-app --template typescript |
| </ | </ | ||
| - | ====== | + | ====== |
| + | * https:// | ||
| + | <code bash> | ||
| + | npm install @craco/ | ||
| + | </ | ||
| + | <code bash> | ||
| + | echo " | ||
| + | </ | ||
| + | <file javascript craco.config.js> | ||
| + | module.exports = {}; | ||
| + | </ | ||
| + | |||
| + | ====== React Router ====== | ||
| + | * https:// | ||
| + | * https:// | ||
| <code bash> | <code bash> | ||
| - | yarn create | + | npm install |
| </ | </ | ||
| + | |||
| + | ====== 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/ | ||
| + | </ | ||
| + | |||
| + | ====== Axios ====== | ||
| + | * https:// | ||
| + | |||
| + | <code bash> | ||
| + | npm install axios --save | ||
| + | </ | ||
| + | |||
| + | ====== Lodash ====== | ||
| + | * https:// | ||
| + | |||
| + | < | ||
| + | npm install --save lodash | ||
| + | </ | ||
| + | |||
| + | ====== date-fns ====== | ||
| + | * https:// | ||
| + | |||
| + | < | ||
| + | npm install date-fns --save | ||
| + | </ | ||
| + | |||
react.1626415270.txt.gz · 最后更改: 2021/07/16 14:01 由 admin
