({ children })
| 15 | }); |
| 16 | |
| 17 | const Provider: FC<PropsWithChildren> = ({ children }) => { |
| 18 | const [aaa, setAaa] = useState(0); |
| 19 | const [bbb, setBbb] = useState(0); |
| 20 | |
| 21 | return ( |
| 22 | <context.Provider |
| 23 | value={{ |
| 24 | aaa, |
| 25 | bbb, |
| 26 | setAaa, |
| 27 | setBbb |
| 28 | }} |
| 29 | > |
| 30 | {children} |
| 31 | </context.Provider> |
| 32 | ); |
| 33 | }; |
| 34 | |
| 35 | const App = () => ( |
| 36 | <Provider> |
nothing calls this directly
no test coverage detected