Skip to content

Commit b4e9e0f

Browse files
authored
Merge pull request reactjs#683 from raunofreiberg/patch-1
[docs] add reference to the explanation of capitalizing components
2 parents c091475 + d9e7b42 commit b4e9e0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/docs/components-and-props.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ Let's recap what happens in this example:
8585
3. Our `Welcome` component returns a `<h1>Hello, Sara</h1>` element as the result.
8686
4. React DOM efficiently updates the DOM to match `<h1>Hello, Sara</h1>`.
8787

88-
>**Caveat:**
89-
>
90-
>Always start component names with a capital letter.
88+
>**Note:** Always start component names with a capital letter.
9189
>
9290
>React treats components starting with lowercase letters as DOM tags. For example, `<div />` represents an HTML div tag, but `<Welcome />` represents a component and requires `Welcome` to be in scope.
91+
>
92+
>You can read more about the reasoning behind this convention [here.](https://reactjs.org/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized)
9393
9494
## Composing Components
9595

0 commit comments

Comments
 (0)