Many people wonder how to update the state of a parent component from its child component since we can only pass props down from the parent to the child in React, as data flow is unidirectional in React applications. Well, through this blog, I will try to clear up the confusion.
source https://www.c-sharpcorner.com/Blogs/updating-parent-component-state-from-children-components-in-react-with-typescript-tsx-project
No comments:
Post a Comment