add a sse demo

This commit is contained in:
2024-10-16 17:48:15 +08:00
parent 6ed24fb4bc
commit d0cc4f33a6
8 changed files with 180 additions and 22 deletions

View File

@ -42,6 +42,7 @@ pub fn nav_bar() -> Html {
for (route, title) in [
(Route::Home, "Home"),
(Route::Counter, "Counter"),
(Route::Echo, "Echo"),
] {
let active_item = if let Some(ref location) = maybe_location {
let path = location.path();