I want to pass a function to a child component but I\'m getting this error.
Invalid value for prop passedFunction on tag. c
c
If you can bind this function like this it will works
class Parent extends Component { passedFunction = () => {}; render() { ; } } class Child extends Component { render() { ; } }