preact-markup
preact-markup copied to clipboard
Handle case where document is undefined
When using this library with preact-cli we get build error when prerendering because it expects document to not be undefined. The fallback here is to use dangerouslySetInnerHTML with the supplied markup.
Just a heads up: https://github.com/developit/preact-markup/issues/6#issuecomment-809934523