1.What is the difference between props and state?
Show hint
Who owns the value?
Show solution
Props are passed into a component by its parent and are read-only for that component. State is owned by the component itself and changed with its setter, which triggers a re-render. Data typically lives in a parent's state and flows down to children as props.