Last active
July 5, 2016 05:36
-
-
Save pocotan001/2197fae825f2c570b6ec to your computer and use it in GitHub Desktop.
func: removeReactIds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
removeReactIds() { | |
const children = this.el.querySelectorAll('[data-reactid]'); | |
this.el.removeAttribute('data-reactid'); | |
Array.prototype.forEach.call(children, (child) => { | |
child.removeAttribute('data-reactid'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment