Skip to content

Instantly share code, notes, and snippets.

@Willmo36
Created July 28, 2015 13:55
Show Gist options
  • Select an option

  • Save Willmo36/8e43dbe5d43d01efc617 to your computer and use it in GitHub Desktop.

Select an option

Save Willmo36/8e43dbe5d43d01efc617 to your computer and use it in GitHub Desktop.
Get the React ID of a component instance. Useful for tracing multiple instances of components
this.getDOMNode().attributes['data-reactid'].value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment