MCPcopy
hub / github.com/facebook/react / HomePage

Function HomePage

fixtures/nesting/src/modern/HomePage.js:8–22  ·  view source on GitHub ↗
({counter, dispatch})

Source from the content-addressed store, hash-verified

6import Clock from './shared/Clock';
7
8export default function HomePage({counter, dispatch}) {
9 const theme = useContext(ThemeContext);
10 return (
11 <>
12 <h2>src/modern/HomePage.js</h2>
13 <h3 style={{color: theme}}>
14 This component is rendered by the outer React ({React.version}).
15 </h3>
16 <Clock />
17 <b>
18 <Link to="/about">Go to About</Link>
19 </b>
20 </>
21 );
22}

Callers

nothing calls this directly

Calls 1

useContextFunction · 0.90

Tested by

no test coverage detected