Skip to content

Instantly share code, notes, and snippets.

@janx
Created July 2, 2015 04:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janx/329908f3df585be77645 to your computer and use it in GitHub Desktop.
Save janx/329908f3df585be77645 to your computer and use it in GitHub Desktop.
A script to show which parts rendered by React
setInterval(function() { Array.prototype.slice.call(document.querySelectorAll('[data-reactid]')).forEach(function(element) { element.style.background = 'rgba(255,0,0,0.1)'; }) }, 500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment