Concept Flow - Parent-child data flow
Parent Component
Child Component
Child renders UI
Parent updates state
Parent re-renders and passes new props
The parent sends data down to the child via props. The child uses these props to display or act. If the child needs to send data back, it calls a function from the parent, which updates the parent's state and triggers a re-render.