How to use the diffhtml.createElement function in diffhtml

To help you get started, we’ve selected a few diffhtml examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tbranyen / diffhtml / packages / diffhtml-website / api-browser.js View on Github external
return childNodes.map(childNode => {
        if (childNode.nodeName === tagName) {
          return createElement('#text', null, ' ');
        }

        childNode.childNodes = filter(childNode.childNodes);

        return childNode;
      });
    };