Jonathan Kelley cdcd8611e8 wip: it works but the page is backwards 3 лет назад
..
.vscode 4d5c528b07 Feat: dirty hack to enable send + sync on virtual dom 4 лет назад
examples cdcd8611e8 wip: it works but the page is backwards 3 лет назад
src cdcd8611e8 wip: it works but the page is backwards 3 лет назад
Cargo.toml f782e14211 feat: omg what a dumb mistake 4 лет назад
README.md 49856ccd68 wip: making progress on diffing and hydration 3 лет назад
index.html bbcb5a0234 feat: enable components in ssr 4 лет назад

README.md

Dioxus SSR

Render a Dioxus VirtualDOM to a string.

// Our app:
const App: FC<()> = |cx| cx.render(rsx!(div {"hello world!"}));

// Build the virtualdom from our app
let mut vdom = VirtualDOM::new(App);

// This runs components, lifecycles, etc. without needing a physical dom. Some features (like noderef) won't work.
vdom.rebuild_in_place();

// Render the entire virtualdom from the root
let text = dioxus_ssr::render_root(&vdom);
assert_eq!(text, "<div>hello world!</div>")

Pre-rendering