Put in order · JavaScript and React course · Module 9: Modern React Hooks

React Rendering Cycle

Arrange the stages of one React render cycle in order:

Items to put in order

  • Render trigger, e.g. a state change with setState
  • The browser paints the updated screen
  • Running the effects (useEffect)
  • Render: React calls the component and gets new JSX
  • Reconciliation: comparing the new tree with the previous one
  • Commit: React applies the changes to the DOM

You can check the correct answer by solving this task in the CodeWorlds game.