Jonathan Kelley 7bdad1e2e6 publish: move macro crate out of core %!s(int64=3) %!d(string=hai) anos
..
.vscode 4d5c528b07 Feat: dirty hack to enable send + sync on virtual dom %!s(int64=4) %!d(string=hai) anos
examples 7bdad1e2e6 publish: move macro crate out of core %!s(int64=3) %!d(string=hai) anos
src 7bdad1e2e6 publish: move macro crate out of core %!s(int64=3) %!d(string=hai) anos
Cargo.toml 7bdad1e2e6 publish: move macro crate out of core %!s(int64=3) %!d(string=hai) anos
README.md a2c7d17b05 feat: mvoe away from compound context %!s(int64=3) %!d(string=hai) anos
index.html bbcb5a0234 feat: enable components in ssr %!s(int64=4) %!d(string=hai) anos

README.md

Dioxus SSR

Render a Dioxus VirtualDOM to a string.

// Our app:
const App: FC<()> = |cx, props|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