From ae6656d5ae81f0103566231fbfb2377fc99b6637 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Sun, 27 Oct 2024 21:21:37 +0800 Subject: [PATCH] =?UTF-8?q?11.=20=E5=87=BD=E6=95=B0=E5=BC=8F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20=E4=B8=8E=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SonComponent2.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/SonComponent2.js b/src/components/SonComponent2.js index c9ec288..74609f0 100644 --- a/src/components/SonComponent2.js +++ b/src/components/SonComponent2.js @@ -73,7 +73,7 @@ export default function SonComponent2(props= { return
子组件2 -
+
{state.msg}
@@ -84,7 +84,7 @@ export default function SonComponent2(props= {
{props.msg}
count: {countMemo}
- +
@@ -98,7 +98,7 @@ function Consumer(props){ console.log("SonComponent2 Consumer contextValue", contextValue) return
- +
}