()
| 40 | ); |
| 41 | |
| 42 | const Aaa = () => { |
| 43 | const { aaa, setAaa } = useContext(context); |
| 44 | |
| 45 | console.log('Aaa render...') |
| 46 | |
| 47 | return <div> |
| 48 | aaa: {aaa} |
| 49 | <button onClick={() => setAaa(aaa + 1)}>加一</button> |
| 50 | </div>; |
| 51 | }; |
| 52 | |
| 53 | const Bbb = () => { |
| 54 | const { bbb, setBbb } = useContext(context); |
nothing calls this directly
no outgoing calls
no test coverage detected