in jsx that your component returns, you can add something like this
<button onClick={this.myEventHandlerFunc}>button text</button>
Declare the function myEventHandlerFunc: (e) {} in your component and do the following :)
Hope this helps ... Now I'm starting google to find additional examples;)
EDIT:
If you want to fire custom events, you can also just use jQuery, for example, and bind those of your events to the eventDidMount event of the life cycle. here you can do something like this:
$(document).on('myCrazyEvent', this.componentEvtHandler)
Elsewhere you can create and distribute an event like this
$(document).trigger('myCrazyEvent', [customVar]);
source share