11. 函数式组件 与 hook

This commit is contained in:
shikong 2024-10-27 21:19:19 +08:00
parent ca7699cd5d
commit 7a5691d557
Signed by: Shikong
GPG Key ID: BD85FF18B373C341

View File

@ -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>