< Building Interactive UIs with React

Managing & Sharing State

SkillDisplay Educator Network

Show in app

Beschreibung

Lift state up to share it, and scale it with reducers and context.

Ziele

I know

  • how to lift shared state to a common ancestor
  • what useReducer is for
  • what context solves (prop drilling)

I can

  • share state between sibling components
  • consolidate complex updates in a reducer
  • pass data deeply with context