MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / AppMountNotifier

Function AppMountNotifier

client/src/components/app-mount-notifier.tsx:17–34  ·  view source on GitHub ↗
({
  children,
  appMount
}: AppMountNotifierProps)

Source from the content-addressed store, hash-verified

15 bindActionCreators({ appMount }, dispatch);
16
17const AppMountNotifier = ({
18 children,
19 appMount
20}: AppMountNotifierProps): JSX.Element => {
21 useEffect(() => {
22 appMount();
23 // eslint-disable-next-line react-hooks/exhaustive-deps
24 }, []);
25
26 const { i18n } = useTranslation();
27
28 return (
29 <>
30 <Helmet htmlAttributes={{ lang: i18n.language }} />
31 {children}
32 </>
33 );
34};
35
36AppMountNotifier.displayName = 'AppMountNotifier';
37

Callers

nothing calls this directly

Calls 1

useTranslationFunction · 0.90

Tested by

no test coverage detected