Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 技术栈 - 快捷搭建 #49

Open
jtwang7 opened this issue Jul 20, 2022 · 0 comments
Open

React 技术栈 - 快捷搭建 #49

jtwang7 opened this issue Jul 20, 2022 · 0 comments

Comments

@jtwang7
Copy link
Owner

jtwang7 commented Jul 20, 2022

React 技术栈 - 快捷搭建

✅ 技术栈概览

  • React
    • typescript
    • redux
    • react-router-dom
  • Sass

❇️ React + typescript + redux + react-redux

$ yarn create react-app my-app --template typescript redux-typescript
#or
$ yarn create react-app my-app --template typescript
$ yarn add @reduxjs/toolkit
$ yarn add react-redux

❇️ Add react-router-dom v6

$ npm install react-router-dom@6
#17 
$ yarn add react-router-dom@6

❇️ Add Sass

$ npm install sass
# or
$ yarn add sass

❇️ Add axios

$ npm install axios
# or
$ yarn add axios

❇️ Add ahooks

$ npm install --save ahooks
# or
$ yarn add ahooks
# or
$ pnpm add ahooks

❇️ Add lodash.js

$ npm i --save lodash
or
$ yarn add lodash

❇️ Add classnames

# via npm
npm install classnames

# via Bower
bower install classnames

# or Yarn (note that it will automatically save the package to your `dependencies` in `package.json`)
yarn add classnames

❇️ Add antd

$ yarn add antd

修改 src/App.css,在文件顶部引入 antd/dist/antd.css。
@import '~antd/dist/antd.css';
// 若报错,引入
@import '~antd/dist/antd.min.css';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant