ReReact · Lesson 2 of 8
Props & Composition
Props are how data flows in React — from parent to child, as function arguments. They're read-only: a component never modifies its own props.
✦ Tip
The `key` prop on list items must be unique and stable. Using array index as a key (`key={i}`) breaks if the list can reorder or filter — React uses keys to match elements across renders. Use the item's ID, or a stable unique string.
The `key` prop on list items must be unique and stable. Using array index as a key (`key={i}`) breaks if the list can reorder or filter — React uses keys to match elements across renders. Use the item's ID, or a stable unique string.