1 Star 2 Fork 0

不言谢 / geek-h5-hz21

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

项目说明

1. 项目说明

项目学习是从网上找的开源资料的 某马 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 班课程笔记完成

2. 添加依赖包

想装和项目一样的版本,请自己带固定的版本号

以下是开发中,都会补增的一些依赖包:

  • sass
yarn add sass -D

// 以下版本都可以(视频中是v1.39.0)
// yarn add sass@1.56.2
// yarn add sass@1.39.0
  • antd-mobile
yarn add antd-mobile

// 以下版本是视频中版本
// yarn add sass@2.3.4
  • customize-cra
  • react-app-rewired
yarn add customize-cra react-app-rewired babel-plugin-import -D

// 以下版本是视频中版本
"customize-cra": "^1.0.0",
"react-app-rewired": "^2.1.8",
  • babel-plugin-import
yarn add babel-plugin-import --save-dev

// 以下版本是视频中版本
"babel-plugin-import": "^1.13.3",
  • postcss-px-to-viewport
yarn add postcss-px-to-viewport -D

// 以下版本是视频中版本
"postcss-px-to-viewport": "^1.1.1",
  • react-router-dom
yarn add react-router-dom

// 以下版本是视频中版本
"react-router-dom": "^5.2.0",
  • react-redux
  • redux
  • redux-thunk
  • redux-devtools-extension
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",

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

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.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

空文件

简介

📚React 项目实战-H5项目(手机端)。用来练手,只使用了Hook与Redux,并且后期补充了typeScript 展开 收起
JavaScript 等 4 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/byx1024/geek-h5-hz21g.git
git@gitee.com:byx1024/geek-h5-hz21g.git
byx1024
geek-h5-hz21g
geek-h5-hz21
master

搜索帮助