a note about Capitalized component variable name

Added a note about component variable names to section 1,chapter 5 of tutorial.
pull/4505/head
John Abraham 6 years ago committed by GitHub
parent addea43e4f
commit cb3def395d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,3 +20,9 @@ Add a `<script>` tag that imports `Nested.svelte`...
```
Notice that even though `Nested.svelte` has a `<p>` element, the styles from `App.svelte` don't leak in.
**NOTE**: The component variable names (such as `Nested`) should be Capitalized
- `when?`: When used as tags in markup.
- `Why?`: To avoid conflicts between html tags and user defined component tags, this convention has been adapted.

Loading…
Cancel
Save