polyfills
polyfills copied to clipboard
[ShadyCSS] How do we clean up?
Right now I am doing
componentWillUnmount() {
document.querySelector(`style[scope=${this.styleScopeName}]`).remove()
}
inside my class when it unmounts (a React component).
Is this enough? Or will ShadyCSS still contain a reference to the style sheet and if so how do I clean it?