From d12292ee83e67fd7acff527e671505fb7dd22ec6 Mon Sep 17 00:00:00 2001 From: Hoai Phong Date: Tue, 3 Jan 2023 23:07:01 +0700 Subject: [PATCH] Update codeblock --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4662ab20..cb9eb2ac 100644 --- a/README.md +++ b/README.md @@ -1467,17 +1467,17 @@ You can download the PDF and Epub version of this repository from the latest run _The Equivalent Functional Component_ - ```javascript - import React, {useState} from 'react'; + ```javascript + import React, {useState} from 'react'; - const App = (props) => { - const [count, setCount] = useState(0); + const App = (props) => { + const [count, setCount] = useState(0); - return ( - // JSX - ) - } - ``` + return ( + // JSX + ) + } + ``` **[⬆ Back to Top](#table-of-contents)**