plotly / react-cytoscapejs

React component for Cytoscape.js network visualisations
MIT License
480 stars 68 forks source link

Add a default React displayName #16

Closed Spaxe closed 5 years ago

Spaxe commented 5 years ago

This PR adds a default displayName prop to the CytoscapeComponent, so in React DevTools it can be searched right away:

screen shot 2019-02-01 at 11 45 01

Subsequent instances of CytoscapeComponent can override its own displayName prop to differentiate themselves from each other.