< Building Interactive UIs with React

Events & State

SkillDisplay Educator Network

Show in app

Beschreibung

Respond to user events and give components memory with the useState hook.

Ziele

I know

  • how event handlers are attached
  • what state is and how it differs from props
  • that state updates trigger a re-render

I can

  • handle events
  • declare and update state with useState
  • drive the UI from state