Thanks for your work.
I have a question out of curiosity:
What is the use of this.props.onChange && this.props.onChangeMove(valueRating)?
What's the idea behind setting the state in the component and also setting the state of the parent by using this.props.onChange && this.props.onChangeMove(valueRating)?
Thanks
Thanks for your work.
I have a question out of curiosity:
What is the use of
this.props.onChange && this.props.onChangeMove(valueRating)?What's the idea behind setting the
statein the component and also setting the state of the parent by usingthis.props.onChange && this.props.onChangeMove(valueRating)?Thanks