Expand description
Easily replace HTML in wasm32 environments.
§Usage
#[cfg(target_arch = "wasm32")]
fn main() {
replace_html::replace_body("Your platform is not supported!").unwrap();
}
#[cfg(not(target_arch = "wasm32"))]
fn main() {
// Proceed to run your application...
}
Enums§
Functions§
- replace_
body - Replace the inner HTML of the document body.
- replace_
by_ id - Replace the inner HTML of an element by ID.