|
@@ -1,11 +1,13 @@
|
|
import LearnUseState from "./components/LearnUseState";
|
|
import LearnUseState from "./components/LearnUseState";
|
|
import LearnUseEffect from "./components/LearnUseEffect";
|
|
import LearnUseEffect from "./components/LearnUseEffect";
|
|
import { useState } from "react";
|
|
import { useState } from "react";
|
|
|
|
+import LearnUseRef from "./components/LearnUseRef";
|
|
function App() {
|
|
function App() {
|
|
const [show, setShow] = useState(true)
|
|
const [show, setShow] = useState(true)
|
|
return show ? ( <div>
|
|
return show ? ( <div>
|
|
<LearnUseState></LearnUseState>
|
|
<LearnUseState></LearnUseState>
|
|
<LearnUseEffect></LearnUseEffect>
|
|
<LearnUseEffect></LearnUseEffect>
|
|
|
|
+ <LearnUseRef></LearnUseRef>
|
|
</div>) : (
|
|
</div>) : (
|
|
<div>
|
|
<div>
|
|
<LearnUseState></LearnUseState>
|
|
<LearnUseState></LearnUseState>
|