Implements event api handled by ReactJS