From c336615c68892606159205e2feb8f26d3b2a90e5 Mon Sep 17 00:00:00 2001 From: maofeng Date: Thu, 19 Jun 2025 22:42:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E6=B5=8B=E8=AF=95=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E4=B8=8A=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 5d2d25d..35f3464 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,8 +1,8 @@ import "./App.css"; -import { RecordProvider, useNamedRecord, useRecord } from "./core/record"; +import { RecordContextProvider, useRecordContext } from "./core/record"; function Consumer({ name }: { name: string }) { - const record = useNamedRecord<{ text: string }>(name); + const record = useRecordContext<{ text: string }>(name); return (
(); + const record = useRecordContext<{ text: string }>(); return (
{

Rsbuild with React

Start building amazing things with Rsbuild.

- - + + - + - +
); };