Trying out making dioxus ssr and hyration work in a single app
- The
appcrate is the shared crate that exposes anAppfn that contains the rendering + app logic - The
webcrate bundles the assets + styles and wasm required for client interaction. - The
ssrcrate contains the server logic and the handler required for rendering the app.
- in one terminal session build the wasm output in watch mode using trunk:
cd crates/web && trunk watch
- in another terminal session start the server
cd crates/ssr && cargo run
- open the app in your browser on the port showed by rocket (usually 8080)