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

Function Comp2

packages/react-intl/examples/Injected.tsx:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9const Comp2: React.FC = () => {
10 const {formatDate, formatTime} = useIntl()
11 return (
12 <>
13 <h1>{formatDate(new Date(), {month: 'long'})}</h1>
14 <h2>{formatTime(undefined)}</h2>
15 </>
16 )
17}
18
19const App: React.FC = () => {
20 return (

Callers

nothing calls this directly

Calls 3

useIntlFunction · 0.90
formatDateFunction · 0.85
formatTimeFunction · 0.85

Tested by

no test coverage detected