Browse Source

Update capital-letter caveat

main
Alex 7 years ago
committed by GitHub
parent
commit
801a51fce2
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

@ -87,9 +87,9 @@ Let's recap what happens in this example:
>**Caveat:**
>
>Always start component names with a capital letter.
> Always start component names with a capital letter.
>
>For example, `<div />` represents a DOM tag, but `<Welcome />` represents a component and requires the capital 'W' in `Welcome` to be in scope.
> 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.
## Composing Components

Loading…
Cancel
Save