Last updated 3 years ago
参数是组件,返回值也是组件的函数。什么都能做,所以抽象问题就具体回答。
举例说明即可:
React.forwardRef
ReactRedux 的 connect
ReactRouter 的 withRouter
参考阅读: