|
@@ -3,7 +3,9 @@ import './App.css';
|
|
|
import LearnUseState from './components/LearnUseState';
|
|
import LearnUseState from './components/LearnUseState';
|
|
|
import LearnUseEffect from './components/LearnUseEffect';
|
|
import LearnUseEffect from './components/LearnUseEffect';
|
|
|
import LearnUseRef from './components/LearnUseRef';
|
|
import LearnUseRef from './components/LearnUseRef';
|
|
|
|
|
+import LearnUseCallBack from './components/LearnUseCallBack';
|
|
|
import LearnUseMemo from './components/LearnUseMemo';
|
|
import LearnUseMemo from './components/LearnUseMemo';
|
|
|
|
|
+import TestComponent from './components/TestComponent';
|
|
|
function App() {
|
|
function App() {
|
|
|
let [show, isShow] = useState(true);
|
|
let [show, isShow] = useState(true);
|
|
|
let [open, isOpen] = useState(true);
|
|
let [open, isOpen] = useState(true);
|
|
@@ -20,6 +22,8 @@ function App() {
|
|
|
}
|
|
}
|
|
|
</div>
|
|
</div>
|
|
|
<LearnUseMemo></LearnUseMemo>
|
|
<LearnUseMemo></LearnUseMemo>
|
|
|
|
|
+ <LearnUseCallBack></LearnUseCallBack>
|
|
|
|
|
+ <TestComponent></TestComponent>
|
|
|
</div>
|
|
</div>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|