How to handle mouse events in neovis?

I have a react JS web app and neo4j db, I am able to display the the graph but I need to handle the click event on a node so that I can take some action . I have been struggling to figure out how to do this.. can someone shed some light on this?

Hi! I'm also struggling with this. Seems like the registerOnEvent() is one solution, but I have trouble figuring out how. Would be great if someone could give some guidance.