From 95a606045645ae494cfd6392fb9a6d51d2b76099 Mon Sep 17 00:00:00 2001 From: Enrico Sacchetti Date: Thu, 4 May 2023 10:51:53 -0400 Subject: [PATCH] docs(tutorial): add note on reactive statements Note to learner that reactive statements run after script code, to complement documentation at https://svelte.dev/docs#component-format-script-3-$-marks-a-statement-as-reactive --- .../01-svelte/02-reactivity/02-reactive-declarations/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/README.md b/content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/README.md index 16fb5dfb1..a6a1d9dcd 100644 --- a/content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/README.md +++ b/content/tutorial/01-svelte/02-reactivity/02-reactive-declarations/README.md @@ -24,3 +24,5 @@ Let's use `doubled` in our markup: ``` Of course, you could just write `{count * 2}` in the markup instead — you don't have to use reactive values. Reactive values become particularly valuable (no pun intended) when you need to reference them multiple times, or you have values that depend on _other_ reactive values. + +> Note that reactive declarations and statements will run after other script code and before component markup is rendered.