0
Challenge · 06React Core

Props

Coreused in ~100% of apps

Props are how data flows through a React app — always downward, never mutated.

Core idea. Props are read-only inputs a parent passes to a child, like function arguments; to change parent data, a child calls a callback prop.
Playground, this isn't a screenshot
props are read-only
<App />owns the data
<PostCard author="Aria" likes={12} onLike={...} />
<PostCard />receives props
A
Aria
Pick an author in the parent — watch the prop travel down.
data down (props) events up (callbacks)
↑ play a little first, then dig in