React: Pattern: Reusable Component
20th August 2020 at 2:19pm
React: Pattern
React 推荐
用组合来代替继承
。
实现可复用组件的方法有这些:
Containment
Higher-Order Components
Render Props
Hooks
TOC
React: Pattern: Reusable Component: Containment
React: Pattern: Reusable Component: Higher-Order Components
React: Pattern: Reusable Component: Render Props