Skip to content

What's the use of this.props.onChange && this.props.onChange(valueRating)? #2

@aziz-boudi4

Description

@aziz-boudi4

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions