reagent.dom.client

Render into React roots (React 18 and 19).

create-rootfunction

(create-root container)
(create-root container options)

Create a React Root connected to given container DOM element.

Source

hydrate-rootfunction

(hydrate-root container el)
(hydrate-root container el {:keys [compiler on-recoverable-error identifier-prefix], :or {compiler tmpl/*current-default-compiler*}})

No docstring.

Source

renderfunction

(render root el)
(render root el compiler)
(render root el compiler strict-mode?)

Render the given Reagent element (i.e. Hiccup data) into a given React root.

Source

unmountfunction

(unmount root)

Unmount the given React Root

Source