plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
472 stars 69 forks source link

[Discussion] Good practice for event handling #4

Closed xhluca closed 5 years ago

xhluca commented 5 years ago

Is there event handler for this react wrapper?

In cytoscape.js events are handled in a jquery manner: http://js.cytoscape.org/#events

However, event handling in react is quite different. For example, we would use props such as onTap, onClick, etc. which are fired when the corresponding event happens. Should those props be added, or should we use the cy.on() to handle those events?

Spaxe commented 5 years ago

Was there a conclusion to this discussion?

k8reindeer commented 4 years ago

I'm also interested in learning how this turned out?