mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
examples: remove incorrect CSR information for hackernews_js_fetch
example (#1997)
This commit is contained in:
parent
9d9a4932b3
commit
530dcff86a
2 changed files with 4 additions and 14 deletions
|
@ -2,12 +2,10 @@
|
||||||
|
|
||||||
This example uses the basic Hacker News example as its basis, but shows how to run the server side as WASM running in a JS environment. In this example, Deno is used as the runtime.
|
This example uses the basic Hacker News example as its basis, but shows how to run the server side as WASM running in a JS environment. In this example, Deno is used as the runtime.
|
||||||
|
|
||||||
## Client Side Rendering
|
|
||||||
To run it as a Client Side App, you can issue `trunk serve --open` in the root. This will build the entire
|
|
||||||
app into one CSR bundle. Make sure you have trunk installed with `cargo install trunk`.
|
|
||||||
|
|
||||||
## Server Side Rendering with Deno
|
## Server Side Rendering with Deno
|
||||||
|
|
||||||
To run the Deno version, run
|
To run the Deno version, run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
deno task build
|
deno task build
|
||||||
deno task start
|
deno task start
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<link data-trunk rel="rust" data-wasm-opt="z"/>
|
|
||||||
<link data-trunk rel="css" href="/public/style.css"/>
|
|
||||||
</head>
|
|
||||||
<body></body>
|
|
||||||
</html>
|
|
Loading…
Reference in a new issue