redraw_dom/client

Types

Root to display React DOM.

Documentation

pub type Root

Functions

pub fn create_portal(
  children: Component,
  root: String,
) -> Component

Let you render some children into a different part of the DOM.

Documentation

pub fn create_root(root: String) -> Root

Let you create a root to display React components inside a browser DOM node.

Documentation

pub fn hydrate_root(root: String, node: Component) -> Root

Let you display React components inside a browser DOM node whose HTML content was previously generated by react-dom/server.

Documentation

pub fn render(root: Root, child: Component) -> Nil

Call render(root) to display a piece of JSX (“React node”) into the React root’s browser DOM node.

Documentation

Search Document