项目学习是从网上找的开源资料的 某马 React 项目实战【拓展课程】
✨ 版本:React_v17.0.2
🐱🏍 讲师:胡聪聪
🎉 时间:2021-09-06~2021-09-15
🐱🐉 校区:杭州校区
✔ 项目名称:geek-h5-hz21
因为 某马的 极客园 项目 更新太快,而且版本太杂。现在最新 极客园项目 都用上 React 18 了!
好多课程,笔记都对不上。没办法,只能自己整理一份,供自学的人节约时间来学习使用
基本 1:1 还原视频原内容,笔记,代码。
项目学习是 geek-h5-hz21 班的视频。项目讲解 整体是 参考:geek-h5-87 班项目做的
个人后期补充笔记是 参考:geek-h5-89 班课程笔记完成
想装和项目一样的版本,请自己带固定的版本号
以下是开发中,都会补增的一些依赖包:
yarn add sass -D
// 以下版本都可以(视频中是v1.39.0)
// yarn add sass@1.56.2
// yarn add sass@1.39.0
yarn add antd-mobile
// 以下版本是视频中版本
// yarn add sass@2.3.4
yarn add customize-cra react-app-rewired babel-plugin-import -D
// 以下版本是视频中版本
"customize-cra": "^1.0.0",
"react-app-rewired": "^2.1.8",
yarn add babel-plugin-import --save-dev
// 以下版本是视频中版本
"babel-plugin-import": "^1.13.3",
yarn add postcss-px-to-viewport -D
// 以下版本是视频中版本
"postcss-px-to-viewport": "^1.1.1",
yarn add react-router-dom
// 以下版本是视频中版本
"react-router-dom": "^5.2.0",
yarn add redux react-redux redux-thunk redux-devtools-extension
// 以下版本是视频中版本
"react-redux": "^7.2.4",
"redux": "^4.1.0",
"redux-devtools-extension": "^2.13.9",
"redux-thunk": "^2.3.0",
This project was bootstrapped with Create React App.
In the project directory, you can run:
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
yarn test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
yarn build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
yarn eject
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
yarn build
fails to minifyThis section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。