Skip to content

Commit

Permalink
fix syntax in apis.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alioguzhan authored May 14, 2024
1 parent 1318744 commit 5fe6529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/reference/react/apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// ...
}
}
```

0 comments on commit 5fe6529

Please sign in to comment.