Question · JavaScript and React course · Module 3: State and Events
Lifting State Up Pattern
When should you apply the lifting state up pattern in React?
Answer options
- When two sibling components need access to the same state
- When a component has too many useState hooks
- When you want to improve rendering performance
- When a child component does not accept any props
You can check the correct answer by solving this task in the CodeWorlds game.