aboutsummaryrefslogtreecommitdiff
path: root/pages/guide/02-state-management.md
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-03-31 16:11:31 +0100
committerGitHub <noreply@github.com>2024-03-31 16:11:31 +0100
commit35e2b90ba65176ae2fce6c109c28ab5bbe7e1fe9 (patch)
treeef814105444e6557c02ba10665a9a66367f4aced /pages/guide/02-state-management.md
parenta38b93cbb6e75be285df673285d433fb00c77684 (diff)
downloadlustre-35e2b90ba65176ae2fce6c109c28ab5bbe7e1fe9.tar.gz
lustre-35e2b90ba65176ae2fce6c109c28ab5bbe7e1fe9.zip
🔀 Create a guide on using and creating side effects. (#93)
* :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.
Diffstat (limited to 'pages/guide/02-state-management.md')
-rw-r--r--pages/guide/02-state-management.md4
1 files changed, 2 insertions, 2 deletions
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.