Skip to content

Commit

Permalink
Fix text for first example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeko369 committed Mar 15, 2020
1 parent 94e9108 commit 78605e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/home/examples/hooks-a-simple-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ domid: hello-example
hooks: true
---

React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`.
React function components return what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed as function arguments (`props` in this example)

**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.

0 comments on commit 78605e9

Please sign in to comment.