This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
3.0.0
Breaking: render()
render()
will now remove elements not included in the diff (#150, thanks @MobiusHorizons!)- Technically a breaking change, now behaves the same as React:
import { render, createElement } from 'preact-compat'; console.log(document.body.outerHTML); // <body>blah<div>asdfasdf</div><span>hello</span></body> render(<div id="foo">Foo</div>, document.body); console.log(document.body.outerHTML); // <body><div id="foo">Foo</div></body>(note:
<div>
from first log is the same as the second)