Browse Source

Update note label

main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
d9e7b42527
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      content/docs/components-and-props.md

4
content/docs/components-and-props.md

@ -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.
>

Loading…
Cancel
Save