From fa1f447bd0eaf9d27b6af407f90477b81e70b358 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Fri, 5 Apr 2024 13:22:40 +0100 Subject: =?UTF-8?q?=F0=9F=94=80=20Write=20a=20guide=20on=20server-side=20r?= =?UTF-8?q?endering.=20(#103)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :memo: Fix typos in state management guide. * :memo: Begin writing ssr guide. * :memo: Rename discard init arg to '_flags' in all examples. * :memo: Show simple static HTML rendering example. * :memo: Expand hydration section. * :memo: Finish ssr guide. * :wrench: Add ssr guide to built docs pages. --- pages/guide/01-quickstart.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pages/guide/01-quickstart.md') diff --git a/pages/guide/01-quickstart.md b/pages/guide/01-quickstart.md index 87e8ace..9a0546f 100644 --- a/pages/guide/01-quickstart.md +++ b/pages/guide/01-quickstart.md @@ -1,4 +1,4 @@ -# 01 Quickstart Guide +# 01 Quickstart guide Welcome to the Lustre quickstart guide! This document should get you up to speed with the core ideas that underpin every Lustre application as well as how to get @@ -163,7 +163,7 @@ model can be an `Int` and our `init` function will initialise it to `0`: ```gleam pub type Model = Int -fn init(_) -> Model { +fn init(_flags) -> Model { 0 } ``` @@ -282,7 +282,7 @@ pub type Model { Model(count: Int, cats: List(String)) } -fn init(_) -> #(Model, effect.Effect(Msg)) { +fn init(_flags) -> #(Model, effect.Effect(Msg)) { #(Model(0, []), effect.none()) } ``` -- cgit v1.2.3