How to destroy Preact node?
In this article, we review a code snippet from react-scan codebase shown below.
container.remove = () => {
window.__REACT_SCAN_TOOLBAR_CONTAINER__ = undefined;
if (container.hasChildNodes()) {
// Double render(null) is needed to fully ...
thinkthroo.com2 min read