|
@@ -3,6 +3,7 @@ import LearnUseEffect from "./components/LearnUseEffect";
|
|
|
import LearnUseRef from "./components/LearnUseRef";
|
|
|
import LearnUseMemo from './components/LearnUseMemo';
|
|
|
import LearnUseCallBack from "./components/LearnUseCallBack";
|
|
|
+import CustomHook from './components/CustomHook';
|
|
|
import { useState } from "react";
|
|
|
function App() {
|
|
|
const [show, setShow] = useState(true)
|
|
@@ -12,6 +13,7 @@ function App() {
|
|
|
<LearnUseRef></LearnUseRef>
|
|
|
<LearnUseMemo></LearnUseMemo>
|
|
|
<LearnUseCallBack></LearnUseCallBack>
|
|
|
+ <CustomHook></CustomHook>
|
|
|
</div>) : (
|
|
|
<div>
|
|
|
<LearnUseState></LearnUseState>
|