From 5fe652927569bc4ef5e759db8548d368bc620f8e Mon Sep 17 00:00:00 2001 From: Ali Oguzhan Yildiz Date: Tue, 14 May 2024 23:35:24 +0300 Subject: [PATCH] fix syntax in apis.md --- src/content/reference/react/apis.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/reference/react/apis.md b/src/content/reference/react/apis.md index 232767582..99b5da8c1 100644 --- a/src/content/reference/react/apis.md +++ b/src/content/reference/react/apis.md @@ -25,9 +25,11 @@ title: "Yerleşik React API'leri" To read a value from a resource, use this API: * [`use`](/reference/react/use) lets you read the value of a resource like a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) or [context](/learn/passing-data-deeply-with-context). + ```js function MessageComponent({ messagePromise }) { const message = use(messagePromise); const theme = use(ThemeContext); // ... -} \ No newline at end of file +} +``` \ No newline at end of file