@samitouri / QOS-React-2 / commits / 6fa1ddbdb4

Fix typos (#8067)

Marcio Puga committed Oct 24, 2016 at 13:50 UTC 6fa1ddbdb43a4917a9479c820ec4a15b73bd30e7
1 file changed +2 -2
docs/tutorial/tutorial.md
+2 -2
@@ -44,7 +44,7 @@ We'll get to the funny XML-like tags in a second. Your components tell React wha
44
45 Here, ShoppingList is a **React component class**, or **React component type**. A component takes in parameters, called `props`, and returns a hierarchy of views to display via the `render` method.
46
47 -The `render` method return a *description* of what you want to render, and then React takes that description and renders it to the screen. In particular, `render` returns a **React element**, which is a lightweight description of what to render. Most React developers use a special syntax called JSX which makes it easier to write these structures. The `<div />` syntax is transformed at build time to `React.createElement('div')`. The example above is equivalent to:
47 +The `render` method returns a *description* of what you want to render, and then React takes that description and renders it to the screen. In particular, `render` returns a **React element**, which is a lightweight description of what to render. Most React developers use a special syntax called JSX which makes it easier to write these structures. The `<div />` syntax is transformed at build time to `React.createElement('div')`. The example above is equivalent to:
48
49 ```javascript
50 return React.createElement('div', {className: 'shopping-list'},
@@ -248,7 +248,7 @@ function Square(props) {
248 }
249 ```
250
251 -You'll need to change `this.props` to `props` both times it appears. Many components in your apps will be able to written as functional components: these components tend to be easier to write and React will optimize them more in the future.
251 +You'll need to change `this.props` to `props` both times it appears. Many components in your apps will be able to be written as functional components: these components tend to be easier to write and React will optimize them more in the future.
252
253 ## Taking Turns
254