Skip to content

Commit 0764cf1

Browse files
iamnotaturtletyroprogrammer
authored andcommittedApr 5, 2019
Update 00-ReactIntroduction.md
Minor typo fixes
1 parent 776b627 commit 0764cf1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/tutorial/00-ReactIntroduction.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
### Component
44

5-
Components are building block of your UI - similar to directives in angular, or modules and widgets in other frameworks. Components in React are more or less self sufficient in that they constitutes the presentation (HTML) as well as the behavior (eg. event handlers). They are also composable - meaning we can easily use one component within other component. So how do we create a Component? There are couple common ways how you can create a React component.
5+
Components are building block of your UI - similar to directives in angular, or modules and widgets in other frameworks. Components in React are more or less self sufficient in that they constitute the presentation (HTML) as well as the behavior (eg. event handlers). They are also composable - meaning we can easily use one component within other component. So how do we create a Component? There are couple common ways how you can create a React component.
66

77
#### 1. React.Component
88

9-
One way to create a React component is to create ES6 `class` and extend `React.Component`. Each component created using this method should have a `render` function that returns what the DOM should look like if this component is rendered on the browser.
9+
One way to create a React component is to create an ES6 `class` and extend `React.Component`. Each component created using this method should have a `render` function that returns what the DOM should look like if this component is rendered on the browser.
1010

1111
```jsx
1212
import React from 'react';
@@ -35,6 +35,6 @@ function Component(props) {
3535
```
3636
*Note: Components that are user-defined - meaning the components that you and I write and are not available in the React implementation itself - must have [first letter capital](https://reactjs.org/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized).*
3737

38-
The above two approaches are identical except there are certain things that `React.Component` can do that the `function` cannot do but we will park that for now and we'll come back to it later in this tutorial.
38+
The above two approaches are identical except there are certain things that `React.Component` can do that the `function` cannot do but we will park that for now and come back to it later in this tutorial.
3939

4040
Lets build our first `HelloWorld` React Component.

0 commit comments

Comments
 (0)
Failed to load comments.