QuickDevGuide

Home › React

Props & State — React

Props (properties) are read-only data passed from parent to child components. They flow one way — downward. A parent decides what data a child receives, and the child cannot modify its own props. State is mutable data owned by the component itself. When state changes, the component re-renders with the new data. Lifting State Up The key rule: "Lift state up." When two sibling components need to share data, move the state to their common parent and pass it down as props.

Key Takeaways