Skip to content

Add a default React displayName #16

Merged
maxkfranz merged 1 commit intoplotly:masterfrom
D61-IA:feature/displayName
Apr 16, 2019
Merged

Add a default React displayName #16
maxkfranz merged 1 commit intoplotly:masterfrom
D61-IA:feature/displayName

Conversation

@Spaxe
Copy link
Copy Markdown
Contributor

@Spaxe Spaxe commented Feb 1, 2019

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.

@maxkfranz maxkfranz merged commit 5e1c78c into plotly:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants