11. 函数式组件 与 hook
This commit is contained in:
parent
ca7699cd5d
commit
7a5691d557
@ -80,7 +80,7 @@ export default function SonComponent2(props= {
|
||||
|
||||
<hr/>
|
||||
|
||||
<ContextParent.Provider value={{changeText: "修改msg", revokeText: "修改msg"}}>
|
||||
<ContextParent.Provider value={{changeText: "修改msg", revokeText: "撤销msg"}}>
|
||||
<div>
|
||||
{props.msg}
|
||||
<div>count: {countMemo}</div>
|
||||
|
Loading…
Reference in New Issue
Block a user