**高阶组件是一个获取组件并返回新组件的函数。**
```
// React Redux's `connect`
const ConnectedComment = connect(commentSelector, commentActions)(CommentList);
如果你把它分开,就会更容易看出发生了什么。
// connect is a function that returns another function
const enhance = connect(commentListSelector, commentListActions);
const ConnectedComment = enhance(CommentList);
// The returned function is a HOC, which returns a component that is connected
// to the Redux store
```
- 说明
- react源码
- 问答
- 慕课网视频
- 第二章:基础知识
- 001.ReactElement
- 002.react-component
- 003.ref
- 004.forwardRef
- 005.context
- 006.concurrentMode
- 007.supense和lazy
- 008.hooks
- 009.children
- 010.memo
- 011.others
- 第三章:react的更新
- 001.react-dom-render
- 第四章:Fiber Scheduler
- 第五章:各类组件的Update
- 第六章:完成节点任务
- 第七章:commitRoot
- 第八章:功能详解:基础
- 第九章:suspense and priority
- 第十章:功能详解:Hooks
- 001.基础知识
- 002.hook
- 003.RootFiber
- 004. hydrate
- react
- 高阶组件
- react基础
- Github面试题目