use dioxus::prelude::*;

/// Renders a component to a static HTML string via `dioxus-ssr`, so tests can
/// assert on context wiring 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)
}
