Engrain by ByteRush

RCT.01 3 concepts · 3 ready

Rendering model and components

Explain what a render is, when React renders and what it commits.

  1. RCT.01.01Render vs commit; React elementsCoreMid-level10 min
  2. RCT.01.02State as a snapshot and batchingCoreMid-level10 min
  3. RCT.01.03Purity, StrictMode and idempotent rendering + Class components and lifecycle (legacy)CoreMid-level12 min

Interview questions in this module

  1. What happens when you call setState? Is it synchronous?
  2. What is the difference between the render phase and the commit phase?
  3. What is automatic batching?
  4. Why does React StrictMode run effects twice in development?
  5. When does a component re-render?
  6. Why does setCount(count + 1) three times only add one?