Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
langyo committed Nov 21, 2023
1 parent ff4a0ba commit 1335d20
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions examples/wasi_ssr_module/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
mod router;

use anyhow::Result;

use router::{switch, Route};
use yew::prelude::*;
use yew::{function_component, ServerRenderer};

use router::{switch, Route};

#[function_component]
fn Content() -> Html {
use yew_router::prelude::*;
Expand All @@ -24,10 +22,8 @@ fn Content() -> Html {

#[function_component]
fn App() -> Html {
use yew_router::{
history::{AnyHistory, History, MemoryHistory},
prelude::*,
};
use yew_router::history::{AnyHistory, History, MemoryHistory};
use yew_router::prelude::*;

let history = AnyHistory::from(MemoryHistory::new());
history.push("/");
Expand Down

0 comments on commit 1335d20

Please sign in to comment.