SyntaxFix
Write A Post
Hire A Developer
Questions
You can send a prop from the parent and use it in child component so you will base child's state changes on the sent prop changes and you can handle this by using getDerivedStateFromProps in the child component.