Skip to content
Advertisement

How to call method inside main Component from outside in Reactjs

I need to call cancelMethod with params from Button onClick inside popover. However I could not access this method. Can you explain is it possible to access. If yes how can I do it?

JavaScript

Advertisement

Answer

You can define the functions Popover and Event within the class and the call the function with this keyword.

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement