|
@@ -4,6 +4,8 @@ import './App.css';
|
|
import Part from './components/LearnUseState.jsx'
|
|
import Part from './components/LearnUseState.jsx'
|
|
import Count from './components/Count.jsx'
|
|
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 Part4 from './components/LearnUseCallBack.jsx'
|
|
function App() {
|
|
function App() {
|
|
let [open,setOpen] = useState(true)
|
|
let [open,setOpen] = useState(true)
|
|
function show() {
|
|
function show() {
|
|
@@ -15,6 +17,8 @@ function App() {
|
|
<Part/>
|
|
<Part/>
|
|
<Count/>
|
|
<Count/>
|
|
<Part2/>
|
|
<Part2/>
|
|
|
|
+ <Part3></Part3>
|
|
|
|
+ <Part4/>
|
|
</div>
|
|
</div>
|
|
) : <div className='App'>
|
|
) : <div className='App'>
|
|
<button onClick={show}>显示</button>
|
|
<button onClick={show}>显示</button>
|