From c8d923224de330fd6680f2ed25258c4daa79c1c1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 29 Jun 2019 16:14:38 -0400 Subject: [PATCH] Update 01-component-format.md --- site/content/docs/01-component-format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/01-component-format.md b/site/content/docs/01-component-format.md index c78ad3ebdb..33b4e6bf26 100644 --- a/site/content/docs/01-component-format.md +++ b/site/content/docs/01-component-format.md @@ -176,7 +176,7 @@ You can `export` bindings from this block, and they will become exports of the c You cannot `export default`, since the default export is the component itself. -> Variables defined in `module` scripts are not reactive, reassigning them will not trigger a rerender even though the variable itself will update. +> Variables defined in `module` scripts are not reactive — reassigning them will not trigger a rerender even though the variable itself will update. For values shared between multiple components, consider using a [store](https://svelte.dev/docs#svelte_store). ```html