Engrain by ByteRush

RCT.08 4 concepts · 2 ready

Component patterns

Design reusable, composable components.

  1. RCT.08.01Composition, children and slotsCoreMid-level10 min
  2. RCT.08.02Compound components and controlled/uncontrolledCoreSenior12 min
  3. RCT.08.03Headless components, render props and HOCsMid-levelBeing written
  4. RCT.08.04Portals, focus and layeringMid-levelBeing written

Interview questions in this module

  1. What are compound components? Build a Tabs API.
  2. Controlled vs uncontrolled components: how do you support both?
  3. What is a headless component library? Why use one?
  4. Render props vs HOCs vs hooks?
  5. How do events behave in a portal?
  6. How do you avoid prop drilling?