File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ function App() {
27
27
}
28
28
```
29
29
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
+
30
37
## Component trees
31
38
32
39
A web page is displayed by rendering a component tree, which is a hierarchical structure of components.
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ export const App = () => (
99
99
## Customizing Context Utilities
100
100
101
101
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.
103
103
104
104
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.
105
105
This also provides you with the option of re-using the ` Provider ` component in other parts of your application, if needed.
You can’t perform that action at this time.
0 commit comments