Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/formatjs/formatjs
/ useIntl
Function
useIntl
packages/react-intl/components/useIntl.ts:6–10 ·
view source on GitHub ↗
(this: void)
Source
from the content-addressed store, hash-verified
4
import
{Context} from
'#packages/react-intl/components/context.js'
5
6
export
default
function
useIntl(this: void): IntlShape {
7
const
intl = React.useContext(Context)
8
invariantIntlContext(intl)
9
return
intl
10
}
Callers
15
OptionalChainingComponent
Function · 0.90
MixedMessages
Function · 0.90
CoreApp
Function · 0.90
NonStaticMessages
Function · 0.90
SFC
Function · 0.90
SFC
Function · 0.90
Example
Function · 0.90
IndexPage
Function · 0.90
IntlChild
Function · 0.90
Child
Function · 0.90
Comp
Function · 0.90
Comp2
Function · 0.90
Calls
1
invariantIntlContext
Function · 0.85
Tested by
4
IntlChild
Function · 0.72
Test
Function · 0.40
FunctionComponent
Function · 0.40
FC
Function · 0.40