({ color, children })
| 4 | const randomColor = () => '#' + Math.random().toString(16).substr(-6) |
| 5 | |
| 6 | const Card = ({ color, children }) => { |
| 7 | return ( |
| 8 | <div |
| 9 | style={{ |
| 10 | padding: '20px', |
| 11 | textAlign: 'center', |
| 12 | color: 'white', |
| 13 | backgroundColor: color, |
| 14 | }} |
| 15 | > |
| 16 | {children} |
| 17 | </div> |
| 18 | ) |
| 19 | } |
| 20 | |
| 21 | const App = () => { |
| 22 | const [color, setColor] = useState('skyblue') |
nothing calls this directly
no outgoing calls
no test coverage detected