< Building Interactive UIs with React

Conditional Rendering & Lists

SkillDisplay Educator Network

Show in app

Description

Render UI conditionally and turn arrays of data into elements with keys.

Goals

I know

  • how conditionals drive what renders
  • how map() renders lists
  • why keys matter

I can

  • render content conditionally
  • render a list from an array with stable keys