Fanfou Wiki

我等采石之人,当心怀建造大教堂之愿景。

用户工具

站点工具


react

目录结构

React App

Craco

npm install @craco/craco --save
echo "module.exports = {};" > craco.js
craco.config.js
module.exports = {};

React Router

prettier

npm install --save-dev --save-exact prettier
.prettierrc.json
{
  "arrowParens": "avoid",
  "singleQuote": true,
  "semi": true
}

lint-staged

需要提前安装 prettier –save-dev 或者 eslint –save-dev

npx mrm@2 lint-staged

MUI

npm install @mui/material @emotion/react @emotion/styled --save

Form validator

npm install --save react-hook-form @hookform/resolvers joi

Axios

npm install axios --save

Lodash

npm install --save lodash

date-fns

npm install date-fns --save
react.txt · 最后更改: 2021/10/20 17:38 由 admin