Manipulate child state from parent in React.
Using refs we can invoke methods of child components from a parent in both class components as well as in functional components. This is just a workaround, recommended way is to lift the state up to the parent and then pass it through props to the ch...
jayhawk24.hashnode.dev2 min read