Skip to content

Commit

Permalink
Update 21_cargo_leptos.md (#102)
Browse files Browse the repository at this point in the history
added note to make sure wasm target is installed
  • Loading branch information
Crowdedlight authored May 27, 2024
1 parent 35c380f commit 22124ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ssr/21_cargo_leptos.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ or
cargo leptos new --git leptos-rs/start-axum
```

Make sure you've added the wasm32-unknown-unknown target so that Rust can compile your code to WebAssembly to run in the browser.
```bash
rustup target add wasm32-unknown-unknown
```

Now `cd` into the directory you’ve created and run

```bash
Expand Down

0 comments on commit 22124ab

Please sign in to comment.