Merge pull request #2675 from MikeMatrix/clarify-export-const-docs

Exported properties let vs const clarification
pull/2678/head
Rich Harris 6 years ago committed by GitHub
commit 703874626a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save