Skip to content

Commit 2bf5319

Browse files
Merge branch 'main' into feat/how-it-works
2 parents ec8e034 + d73285c commit 2bf5319

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/routes/concepts/components/basics.mdx

Lines changed: 7 additions & 0 deletions
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.

src/routes/concepts/context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const App = () => (
9999
## Customizing Context Utilities
100100

101101
When an application contains multiple context objects, it can be difficult to keep track of which context object is being used.
102-
To solve this issue, you can create a custom utilities to create a more readable way to access the context values.
102+
To solve this issue, you can create a custom utility to create a more readable way to access the context values.
103103

104104
For example, when wrapping a component tree, you may want to create a custom `Provider` component that can be used to wrap the component tree.
105105
This also provides you with the option of re-using the `Provider` component in other parts of your application, if needed.

0 commit comments

Comments
 (0)