
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...
✈️Travelaholic. 🐱💻 WebDev fanatic. Hardcore hacker.
Markdown supported · ⌘↵ to post
No responses yet.