Registry / web-framework / leptos-dom

leptos-dom

JSON →
library0.8.8rscratesunverified

DOM operations for the Leptos web framework, providing reactive DOM manipulation utilities.

# Cargo.toml [dependencies] leptos_dom = "0.8.8"
INSTALL
IMPORT
SIG · LEPTOS-DOM
L
leptos-dom
web-frameworkrustv0.8.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

html
use leptos_dom::html;

Creates a simple HTML div element and mounts it to the body.

use leptos_dom::html; let div = html::div().child("Hello, world!"); leptos::mount_to_body(move || div);
Debug
Known issues
gotchaRequires the Leptos framework runtime and a WebAssembly target to function.
fix
Compile for wasm32-unknown-unknown and use leptos::mount_to_body or similar.
affects: >=0.8.0
Upgrade
Version history
0.8.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
leptos-dom — cargo add leptos-dom · libregistry