I have two components.
I was trying to call child\'s method from Parent, I tried this way but couldn\
I'm using useEffect hook to overcome the headache of doing all this so now I pass a variable down to child like this:
useEffect
useEffect(() => callTheFunctionToBeCalled(value) , [value]);