ev_lib 0.4.0

EV-invest shared Rust libraries, one per feature
Documentation
1
2
3
4
5
6
7
8
9
use dioxus::prelude::*;

/// Renders a component to a static HTML string via `dioxus-ssr`, so tests can
/// assert on the emitted classes and structure without a browser.
pub fn render(app: fn() -> Element) -> String {
	let mut dom = VirtualDom::new(app);
	dom.rebuild_in_place();
	dioxus_ssr::render(&dom)
}