()
| 1 | import { useState } from 'react'; |
| 2 | |
| 3 | export default function App() { |
| 4 | const [num, update] = useState(0); |
| 5 | console.log('App render ', num); |
| 6 | return ( |
| 7 | <div |
| 8 | onClick={() => { |
| 9 | update(1); |
| 10 | }} |
| 11 | > |
| 12 | <Cpn /> |
| 13 | </div> |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | function Cpn() { |
| 18 | console.log('cpn render'); |
nothing calls this directly
no test coverage detected