React example working with simplistic event system