Skip to content

Instantly share code, notes, and snippets.

@zackify
Last active January 14, 2020 15:06
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackify/acf19f6ca0f8be13fb90 to your computer and use it in GitHub Desktop.
Save zackify/acf19f6ca0f8be13fb90 to your computer and use it in GitHub Desktop.
Visually see react elements
setInterval(function() {
Array.prototype.slice.call(document.querySelectorAll('[data-reactid]'))
.forEach(function(element) {
element.style.background = 'rgba(255,0,0,0.1)';
})
}, 500)
@zackify
Copy link
Author

zackify commented Jul 1, 2015

Thanks to boris from the reactiflux slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment