:page_facing_up: Universal rendering for Preact: render JSX and Preact components to HTML.
#347 7bc77a3
Thanks @marvinhagemeister! - Fix JSX template being detected as a top level Fragment when Deno's jsx precompile
option is used
#348 303b8c0
Thanks @marvinhagemeister! - Perf: Remove unnecessary closure when rendering child nodes
#344 27a8b0e
Thanks @JoviDeCroock! - Ensure commonjs also has the async export
#336 c46fb59
Thanks @marvinhagemeister! - Fix error thrown after suspending not being rethrown.
#339 4462822
Thanks @marvinhagemeister! - Fix invalid parent pointer empty value when rendering a suspended vnode
6acc97a
Thanks @JoviDeCroock and @dios-david! - Allow prepass like behavior where a Promise
will be awaited and then continued, this is done with the new renderToStringAsync
exportFull Changelog: https://github.com/preactjs/preact-render-to-string/compare/6.2.2...v6.3.0
Full Changelog: https://github.com/preactjs/preact-render-to-string/compare/v6.3.0...v6.3.1
f1d81be
Thanks @JoviDeCroock! - avoid adding double colon for namespaced attributes#308 a331699
Thanks @marvinhagemeister! - Fix incorrect casing of HTML attributes and SVG attributes
#310 017a8bb
Thanks @marvinhagemeister! - Fix casing of namespaced attribute names
#311 bccd1d6
Thanks @gpoitch! - Apply attribute name handling in pretty mode
#305 568f139
Thanks @marvinhagemeister! - Add support for error boundaries via componentDidCatch
and getDerivedStateFromError
This feature is disabled by default and can be enabled by toggling the errorBoundaries
option:
import { options } from 'preact';
// Enable error boundaries
options.errorBoundaries = true;
659b456
Thanks @marvinhagemeister! - Add experimental ability to render HTML comments via <Fragment UNSTABLE_comment="my-comment" />
. When the UNSTABLE_comment
prop is present all children of that Fragment
will be ignored and a HTML comment will be rendered instead. This feature is added to allow framework authors to experiment with marking DOM for hydration in the client. Note that it's marked as unstable and might change in the future.