I want to call a method exposed by a React component from the instance of a React Element.
For example, in this jsfiddle. I want to call the alertMessage
alertMessage
If you are in ES6 just use the "static" keyword on your method from your example would be the following: static alertMessage: function() { ... },
static alertMessage: function() { ... },
Hope can help anyone out there :)