Hint
Props = external inputs (immutable); state = internal memory (mutable via setState)
setState/useState, triggers re-render when changedfunction Counter({ initialCount, step = 1 }) {
// ↑ props — given from parent, read-only here
const [count, setCount] = useState(initialCount);
// ↑ state — owned by this component
return (
);
}
When state changes: React re-renders the component and all its children.
When props change: the parent re-renders, passing new props, which causes the child to re-render.