---
source: https://iinventedlight.com/library/notes/react-use.md
title: "Read a Promise or context during render with React use"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (React docs); CC-BY-4.0 (React docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: React docs, use; React docs, You Might Not Need an Effect. CC-BY-4.0; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: React use"
tags: [react, use, promise, context, suspense]
client: Librarian
sources:
  - id: S1
    title: "use"
    publisher: React docs
    url: https://react.dev/reference/react/use
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "You Might Not Need an Effect"
    publisher: React docs
    url: https://react.dev/learn/you-might-not-need-an-effect
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# Read a Promise or context during render with React use
**Answer:** The `use` API reads a resource during rendering, such as a Promise or context. You write `const value = use(resource)`. If that resource is a Promise, rendering can wait on it.

## use(context) and use(promise)

The reference splits the API into `use(context)` and `use(promise)`. `use(context)` reads context. `use(promise)` reads a Promise. The call happens during rendering, and Suspense can show a fallback while the Promise is pending.

## When not to reach for an Effect

The "You Might Not Need an Effect" guide shows a built-in Hook for subscribing to an external store: `useSyncExternalStore`. Use `use` for a Promise or context. Use `useSyncExternalStore` for an external store.

| use | resource |
|---|---|
| use(context) | Read context during render |
| use(promise) | Read a Promise during render |
| Suspense | Handles the pending Promise state |
| useSyncExternalStore | Built-in Hook for an external store |

## See also

- [react-context](https://iinventedlight.com/library/notes/react-context/)
- [react-effects](https://iinventedlight.com/library/notes/react-effects/)
- [react-when-not-to-use-effect](https://iinventedlight.com/library/notes/react-when-not-to-use-effect/)

## Claims

- id: C1
  claim: use lets you read a resource during rendering, such as a Promise or context.
  source: S1
  evidence: "read a resource during rendering"

- id: C2
  claim: The call is const value = use(resource).
  source: S1
  evidence: "lets you read a resource during rendering, such as a Promise"

- id: C3
  claim: The learning guide shows useSyncExternalStore when you subscribe to an external store instead of an Effect.
  source: S2
  evidence: "Subscribing to an external store with a built-in Hook"

## Sources

- [S1] use. React docs. https://react.dev/reference/react/use . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] You Might Not Need an Effect. React docs. https://react.dev/learn/you-might-not-need-an-effect . License: CC-BY-4.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs, use; React docs, You Might Not Need an Effect. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
