examples: remove incorrect CSR information for hackernews_js_fetch example (#1997)

This commit is contained in:
Greg Johnston 2023-11-06 14:45:26 -05:00 committed by GitHub
parent 9d9a4932b3
commit 530dcff86a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 14 deletions

View file

@ -1,14 +1,12 @@
# Leptos Hacker News Example with Axum
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`.
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.
## Server Side Rendering with Deno
To run the Deno version, run
```bash
deno task build
deno task start
deno task start
```

View file

@ -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>