From ac24817ef08aa2b139de806494b2feeec797ff2e Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Sat, 4 May 2019 21:01:01 +0200 Subject: [PATCH] Clarifying `let` needs to be used on exported properties, in order for them to be passed in --- site/content/docs/01-component-format.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/content/docs/01-component-format.md b/site/content/docs/01-component-format.md index 93af09b283..b689196d17 100644 --- a/site/content/docs/01-component-format.md +++ b/site/content/docs/01-component-format.md @@ -35,6 +35,9 @@ Svelte uses the `export` keyword to mark a variable declaration as a *property* // these properties can be set externally export let foo; export let bar = 'optional default value'; + + // this property is readonly externally + export const buzz = 'buzz'; // Values that are passed in as props // are immediately available