docs: add note to tutorial on Capitalised component variable names (#4505)

pull/4670/head
John Abraham 4 years ago committed by GitHub
parent 7be80e96c6
commit 8ddb073199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,4 +19,6 @@ Add a `<script>` tag that imports `Nested.svelte`...
<Nested/>
```
Notice that even though `Nested.svelte` has a `<p>` element, the styles from `App.svelte` don't leak in.
Notice that even though `Nested.svelte` has a `<p>` element, the styles from `App.svelte` don't leak in.
Also notice that the component name `Nested` is capitalised. This convention has been adopted to allow us to differentiate between user-defined components and regular HTML tags.

Loading…
Cancel
Save