Skip to content

Commit 5fe6529

Browse files
authored
fix syntax in apis.md
1 parent 1318744 commit 5fe6529

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/reference/react/apis.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ title: "Yerleşik React API'leri"
2525
To read a value from a resource, use this API:
2626

2727
* [`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).
28+
2829
```js
2930
function MessageComponent({ messagePromise }) {
3031
const message = use(messagePromise);
3132
const theme = use(ThemeContext);
3233
// ...
33-
}
34+
}
35+
```

0 commit comments

Comments
 (0)