Update 01-component-format.md

pull/3127/head
Rich Harris 5 years ago committed by GitHub
parent e0ac393a76
commit e05680d2e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
<script context="module">

Loading…
Cancel
Save