What is the difference between state and props in React?
State is a mutable data structure that holds local component data, while props are read-only and are passed down from parent to child components.
How do you pass a function from a parent component to a child component?
Through props. e.g., <ChildComponent myFunction={this.myFunction} />.