Put in order · JavaScript and React course · Module 15: Patterns and Architecture

Levels of IoC in React

Arrange the levels of Inversion of Control in React from LEAST to MOST control given away:

Items to put in order

  • Slots/Children: the consumer decides the content
  • Render props / Component injection: the consumer renders everything
  • Props: the component decides how to display data
  • State reducer: the consumer modifies the state logic

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