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

Function App

examples/files/react/inlineStyles.js:21–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21const App = () => {
22 const [color, setColor] = useState('skyblue')
23
24 return (
25 <div
26 style={{
27 padding: '20px',
28 }}
29 >
30 <Card color={color}>
31 <input
32 type={'button'}
33 value={'Randomize Color'}
34 onClick={() => setColor(randomColor())}
35 />
36 </Card>
37 </div>
38 )
39}
40
41render(<App />, document.querySelector('#app'))

Callers

nothing calls this directly

Calls 1

randomColorFunction · 0.70

Tested by

no test coverage detected