Skip to content

Commit 729b14f

Browse files
committed
Add a note about capitalizing component names
1 parent 07393fb commit 729b14f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/routes/concepts/components/basics.mdx

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ function App() {
2727
}
2828
```
2929

30+
:::info[Note]
31+
32+
Component names must start with a capital letter to distinguish them from regular HTML elements.
33+
Otherwise, they won't be recognized as components.
34+
35+
:::
36+
3037
## Component trees
3138

3239
A web page is displayed by rendering a component tree, which is a hierarchical structure of components.

0 commit comments

Comments
 (0)