|
@@ -6,6 +6,9 @@ import Count from './components/Count.jsx'
|
|
import Part2 from './components/LearnUseEffect.jsx'
|
|
import Part2 from './components/LearnUseEffect.jsx'
|
|
import Part3 from './components/LearnUseMemo.jsx'
|
|
import Part3 from './components/LearnUseMemo.jsx'
|
|
import Part4 from './components/LearnUseCallBack.jsx'
|
|
import Part4 from './components/LearnUseCallBack.jsx'
|
|
|
|
+import Part5 from './components/LearnUseRef.jsx'
|
|
|
|
+import Clock from './components/Clock.jsx'
|
|
|
|
+import Part6 from './components/CustomHook.jsx'
|
|
function App() {
|
|
function App() {
|
|
let [open,setOpen] = useState(true)
|
|
let [open,setOpen] = useState(true)
|
|
function show() {
|
|
function show() {
|
|
@@ -19,6 +22,9 @@ function App() {
|
|
<Part2/>
|
|
<Part2/>
|
|
<Part3></Part3>
|
|
<Part3></Part3>
|
|
<Part4/>
|
|
<Part4/>
|
|
|
|
+ <Part5/>
|
|
|
|
+ <Clock/>
|
|
|
|
+ <Part6/>
|
|
</div>
|
|
</div>
|
|
) : <div className='App'>
|
|
) : <div className='App'>
|
|
<button onClick={show}>显示</button>
|
|
<button onClick={show}>显示</button>
|