MCPcopy Create free account
hub / github.com/i18next/react-i18next / MyComponent

Function MyComponent

example/ReactNativeProject/App.tsx:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15// Component using the Trans component
16function MyComponent() {
17 return (
18 <Text>
19 <Trans i18nKey="description.part1">
20 To get started, edit <Text>src/App.js</Text> and save to reload.
21 </Trans>
22 </Text>
23 );
24}
25
26function AppInner() {
27 const {t, i18n} = useTranslation();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected