Server-Side Rendering (SSR)

This page is rendered fresh on the server for each request.

Rendered at:SystemTime { tv_sec: 1792193145, tv_nsec: 204162606 }

This timestamp updates on every page load because the page is rendered fresh each time. Refresh to see it change.

Implementation

// Leptos with Axum - default SSR
use leptos_axum::LeptosRoutes;

let app = Router::new()
    .leptos_routes(&leptos_options, routes, || {
        view! { <App/> }
    })
    .fallback(leptos_axum::file_and_error_handler(shell));

// Each request renders on the server
// then hydrates on the client

Total Views

24,521

+12.4%vs last period

Unique Users

8,294

+8.1%vs last period

Bounce Rate

42.3%

-2.1%vs last period