I have two components, one is a class component and the other one is a function component. I want to call method in functionComponentA placed in classComponentA. I did it by