Dioxus Server-Side Rendering (SSR)
Render Dioxus to valid html.
## Resources
This crate is a part of the broader Dioxus ecosystem. For more resources about Dioxus, check out:
- [Getting Started](https://dioxuslabs.com/learn/0.5/getting_started)
- [Book](https://dioxuslabs.com/learn/0.5/)
- [Examples](https://github.com/DioxusLabs/example-projects)
## Overview
Dioxus SSR provides utilities to render Dioxus components to valid HTML. Once rendered, the HTML can be rehydrated client-side or served from your web server of choice.
```rust
# use dioxus::prelude::*;
fn app() -> Element {
rsx!{
div {"hello world!"}
}
}
let mut vdom = VirtualDom::new(app);
vdom.rebuild_in_place();
let text = dioxus_ssr::render(&vdom);
assert_eq!(text, "