Browse Source

Update components docs for functional components (#2547)

* Update components docs for functional components

* Update components-and-props.md

Co-authored-by: Sunil Pai <threepointone@oculus.com>
main
Matt Wood 5 years ago
committed by GitHub
parent
commit
a1f0f84a1f
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

@ -44,7 +44,7 @@ class Welcome extends React.Component {
The above two components are equivalent from React's point of view.
Classes have some additional features that we will discuss in the [next sections](/docs/state-and-lifecycle.html). Until then, we will use function components for their conciseness.
Function and Class components both have some additional features that we will discuss in the [next sections](/docs/state-and-lifecycle.html).
## Rendering a Component {#rendering-a-component}

Loading…
Cancel
Save