How to access child component functions via refs?

Posted by Jessica Taylor | Updated on

Want to access child component functions via refs? Redux connect accepts an option parameter as the forth parameter. In this option parameter you can set the flag withRef to true. Then you can access functions to refs by using getWrappedInstance().

Like this example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers