mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Update note label
This commit is contained in:
@@ -85,9 +85,7 @@ Let's recap what happens in this example:
|
||||
3. Our `Welcome` component returns a `<h1>Hello, Sara</h1>` element as the result.
|
||||
4. React DOM efficiently updates the DOM to match `<h1>Hello, Sara</h1>`.
|
||||
|
||||
>**Caveat:**
|
||||
>
|
||||
>Always start component names with a capital letter.
|
||||
>**Note:** Always start component names with a capital letter.
|
||||
>
|
||||
>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.
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user