One-way data flow
Also written: data flows down, events flow up
Data moves down from parents to children as props, and children report back by calling handler functions passed as props. This keeps each piece of state owned by one component.
Also written: data flows down, events flow up
Data moves down from parents to children as props, and children report back by calling handler functions passed as props. This keeps each piece of state owned by one component.