()
| 16 | ` |
| 17 | |
| 18 | const 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 | |
| 34 | render(<App />, document.querySelector('#app')) |
nothing calls this directly
no test coverage detected