title: How to use refs when parent and child component are both functional component?
body: <p>I have two components, one being Parent and other one Child, both as functional components. In the parent component I have a submit button, which when invoked will call a function defined in the Child functional component (e.g. submitHandler()). By using the forwardRef() in child component I am unable to access the submitHandler() of child functional component. Any idea/help regarding how can i tackle this?</p>