Component patterns
Design reusable, composable components.
- RCT.08.01Composition, children and slotsCoreMid-level10 min
- RCT.08.02Compound components and controlled/uncontrolledCoreSenior12 min
- RCT.08.03Headless components, render props and HOCsMid-levelBeing written
- RCT.08.04Portals, focus and layeringMid-levelBeing written
Interview questions in this module
- What are compound components? Build a
TabsAPI. - Controlled vs uncontrolled components: how do you support both?
- What is a headless component library? Why use one?
- Render props vs HOCs vs hooks?
- How do events behave in a portal?
- How do you avoid prop drilling?