passing data from child to parent component via callback function but somehow it\'s not working. what am I doing wrong here? passing data from child to parent component - re
Two things that you need to correct it:
this.state.input after
this.setState({input: 'xxx'}). Here is reason why not it.this.passingProps = this.passingProps.bind(this) is defined what this is current scope. when you use this in component's function, this need to be bind.Changed codepen