Skip to content

Instantly share code, notes, and snippets.

View psimk's full-sized avatar
👨‍🎨
Building in Public

Paul psimk

👨‍🎨
Building in Public
View GitHub Profile

Note

This gist has graduated to a proper repo: preactjs/preact-root-fragment

preact-root-fragment: partial root rendering for Preact

This is a standalone Preact 10+ implementation of the deprecated replaceNode parameter from Preact 10.

It provides a way to render or hydrate a Preact tree using a subset of the children within the parent element passed to render():