An event dispatcher for the react flux architecture