developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.73k stars 170 forks source link

Fix render() in standalone build (fixes #159) #163

Closed developit closed 4 years ago

developit commented 4 years ago

I had "patched" the Preact integrations to automatically pass replaceNode for Preact 8 when we initially launched HTM. When we updated to Preact X, that patch was correctly removed for htm/preact, but we forgot htm/preact/standalone. This just copies that change over, and fixes #159.

See additional codepen repro (line 55)