Skip to content

Commit efb38a1

Browse files
authored
Merge pull request #213 from phongever/master
Update codeblock
2 parents e0181a5 + d12292e commit efb38a1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,17 +1468,17 @@ You can download the PDF and Epub version of this repository from the latest run
14681468
14691469
_The Equivalent Functional Component_
14701470
1471-
```javascript
1472-
import React, {useState} from 'react';
1471+
```javascript
1472+
import React, {useState} from 'react';
14731473

1474-
const App = (props) => {
1475-
const [count, setCount] = useState(0);
1474+
const App = (props) => {
1475+
const [count, setCount] = useState(0);
14761476

1477-
return (
1478-
// JSX
1479-
)
1480-
}
1481-
```
1477+
return (
1478+
// JSX
1479+
)
1480+
}
1481+
```
14821482
14831483
**[⬆ Back to Top](#table-of-contents)**
14841484

0 commit comments

Comments
 (0)