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. 2
      content/docs/components-and-props.md

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

@ -89,7 +89,7 @@ Let's recap what happens in this example:
>
> 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