Skip to main content

render

Function render 

Source
pub(crate) fn render<V>(view: V) -> String
where V: IntoView,
Expand description

Render any Leptos view to a plain HTML string. Used by every story renderer in the per-surface modules.

RenderHtml::to_html is brought into scope via leptos::prelude::* (which re-exports tachys::prelude::*). It takes the view by value and walks it into a synchronous HTML string — exactly what we want for an insta snapshot.