Closed xhluca closed 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?
onTap
onClick
cy.on()
Was there a conclusion to this discussion?
I'm also interested in learning how this turned out?
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 thecy.on()
to handle those events?