MCPcopy Index your code
hub / github.com/formatjs/formatjs / Comp

Function Comp

packages/react-intl/examples/Injected.tsx:4–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import {IntlProvider, useIntl} from 'react-intl'
3
4const Comp: React.FC<{}> = _ => {
5 const {formatDate} = useIntl()
6 return <h1>{formatDate(Date.now())}</h1>
7}
8
9const Comp2: React.FC = () => {
10 const {formatDate, formatTime} = useIntl()

Callers

nothing calls this directly

Calls 2

useIntlFunction · 0.90
formatDateFunction · 0.85

Tested by

no test coverage detected