MCPcopy Create free account
hub / github.com/dabbott/react-native-express / App

Function App

examples/files/react/styledComponents.js:18–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16`
17
18const App = () => {
19 const [color, setColor] = useState('skyblue')
20
21 return (
22 <Container>
23 <Card color={color}>
24 <input
25 type={'button'}
26 value={'Randomize Color'}
27 onClick={() => setColor(randomColor())}
28 />
29 </Card>
30 </Container>
31 )
32}
33
34render(<App />, document.querySelector('#app'))

Callers

nothing calls this directly

Calls 1

randomColorFunction · 0.70

Tested by

no test coverage detected