mzgoddard / preact-render-spy

Render preact components with access to the produced virtual dom for testing.

Home Page:https://www.npmjs.com/package/preact-render-spy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support custom "dom fragments" like undom

gnarf opened this issue · comments

This was suggested by @developit in the preact slack.

We should allow someone to configure a different fragment creation than document.createDocumentFragment()

Could do this via config.createFragment = () => document.createDocumentFragment(); and/or allow passing it to the RenderContext constructor via the options