- import Deom1 from "./demo1" //该实例为canvans的使用实例
- import Demo2 from "./demo2" //该实例为useContext和antd的Tree实例的应用(用途不大,用来测试的)
- import Demo3 from "./demo3" //该实例是修改antd的table自定义样式(scss使用)
- import Demo4 from "./demo4" //该实例为antd Tree组件的过滤检索功能(用途也不大)
- import Demo5 from "./demo5" //该实例为使用 Mock 来实现table的增删改查功能
- import Demo6 from "./demo6" //该实例是高阶组件的实现方法
- import Demo7 from "./demo7" //该实例为父组件重新渲染,子组件也跟着重新渲染
- import DemoMemo from "./demo7/memo/memo" //该实例为memo的解决方法
- import UseCallback from "./demo7/useCallback/useCallback" //该实例为useCallback 的解决办法
- import UseMemo from "./demo7/useMemo/useMemo" //该实例为useCallback 的解决办法
- import Demo8 from "./demo8" //该实例是验证useState的实时更新方法(不是很完善)
- import Demo9 from "./demo9" //该实例是实现用useContext实现跨组件传值
- import Demo10 from "./demo10" //该实例是利用回调函数来实现子组件向父组件传值
- import Demo11 from "./demo11" //该实例是实现一个自定义Hooks
- import Debounce from "./demo12/debounce" //该实例是实现防抖函数的自定义Hooks
- import Throttle from "./demo12/throttle" //该实例是实现节流函数的自定义Hooks
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
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.
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
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
这里输入代码