From 35e2b90ba65176ae2fce6c109c28ab5bbe7e1fe9 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Sun, 31 Mar 2024 16:11:31 +0100 Subject: =?UTF-8?q?=F0=9F=94=80=20Create=20a=20guide=20on=20using=20and=20?= =?UTF-8?q?creating=20side=20effects.=20(#93)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :memo: Explain why managed effects are useful. * :memo: Write a short explainer on pure functions. * :memo: Finish side effects guide. * :wrench: Add side effects guide to generated pages. --- pages/guide/02-state-management.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pages/guide/02-state-management.md') diff --git a/pages/guide/02-state-management.md b/pages/guide/02-state-management.md index 339b013..26cd752 100644 --- a/pages/guide/02-state-management.md +++ b/pages/guide/02-state-management.md @@ -10,8 +10,8 @@ The MVU architecture is an example of _unidirectional data flow_: - Your model describes the entire state of your application at a given point in time. -- The UI is a pure function of that model: if the model doesn't change, the UI - doesn't change. +- The UI is a [pure](https://github.com/lustre-labs/lustre/blob/main/pages/hints/pure-functions.md)) + function of that model: if the model doesn't change, the UI doesn't change. - Events from the outside world – user interaction, HTTP responses, ... – send messages to an update function that constructs a new model. -- cgit v1.2.3