Patterns in React
- Slot : used to pass components to children, so they can place them anywhere. Either
{children}
or {custom}
- Compound Pattern : components are given explicit relationship and work together
- Higher Order Componets : add features to components like error-handling, conditional rendering, protection mechanisms.
- HOC with higher priority should enclose lower ones