Skip to content

when the state change it is not changing the child component #11

@dan89farhan

Description

@dan89farhan

please add the following method into your class to update this component when parent states get changed.

static getDerivedStateFromProps(nextProps) {
    return { count: nextProps.start }
}

Thanks

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions