Mokshit06/dioxus-app

Trying out Dioxus with SSR+Hydration

★ 1Forks 0RustGitHub ↗Compare

README

Dioxus SSR + Hydration

Trying out making dioxus ssr and hyration work in a single app

  • The app crate is the shared crate that exposes an App fn that contains the rendering + app logic
  • The web crate bundles the assets + styles and wasm required for client interaction.
  • The ssr crate contains the server logic and the handler required for rendering the app.

Usage

  • 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)

Contributors

Mokshit06

Issues