Resources can be accessed by a component without having them as part of their state. For example, a component can read a message from a Promise or read styling information from a context.
To read a value from a resource, use this Hook:
function MessageComponent ( { messagePromise } ) {
const message = use ( messagePromise ) ;
const theme = use ( ThemeContext ) ;
// ...
} | status | not read | reprioritisations | ||
|---|---|---|---|---|
| last reprioritisation on | suggested re-reading day | |||
| started reading on | finished reading on |