preact-render-to-string
preact-render-to-string copied to clipboard
refactor: Regex to sets
Might be marginally faster? Probably easier to maintain at the very least -- easier to tell what properties are being replaced and which aren't.
I did this by comparing against Preact's types, mostly, with a few corrections needed for the SVG types.