Skip to content

Commit 5e2089d

Browse files
committed
Fixed grammar mistake
1 parent 96b84b9 commit 5e2089d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,14 +381,14 @@
381381
<div id='login-btn'>Login</div>
382382
```
383383

384-
Whereas a **component** can be declared in several different ways. It can be a class with a `render()` method. Alternatively, in simple cases, it can be defined as a function. In either case, it takes props as an input, and returns an JSX tree as the output:
384+
Whereas a **component** can be declared in several different ways. It can be a class with a `render()` method. Alternatively, in simple cases, it can be defined as a function. In either case, it takes props as an input, and returns a JSX tree as the output:
385385

386386
```javascript
387387
const Button = ({ onLogin }) =>
388388
<div id={'login-btn'} onClick={onLogin} />
389389
```
390390

391-
Then JSX gets transpiled to `React.createElement()` function tree:
391+
Then JSX gets transpiled to a `React.createElement()` function tree:
392392

393393
```javascript
394394
const Button = ({ onLogin }) => React.createElement(

0 commit comments

Comments
 (0)