()
| 6 | import { counterContext } from './context/context' |
| 7 | |
| 8 | function App() { |
| 9 | const [count, setCount] = useState(0) |
| 10 | |
| 11 | return ( |
| 12 | <> |
| 13 | <counterContext.Provider value={{count, setCount}}> |
| 14 | <Navbar/> |
| 15 | <div> |
| 16 | <a href="https://vitejs.dev" target="_blank"> |
| 17 | <img src={viteLogo} className="logo" alt="Vite logo" /> |
| 18 | </a> |
| 19 | <a href="https://react.dev" target="_blank"> |
| 20 | <img src={reactLogo} className="logo react" alt="React logo" /> |
| 21 | </a> |
| 22 | </div> |
| 23 | <h1>Vite + React</h1> |
| 24 | <div className="card"> |
| 25 | <button onClick={() => setCount((count) => count + 1)}> |
| 26 | count is {count} |
| 27 | </button> |
| 28 | <p> |
| 29 | Edit <code>src/App.jsx</code> and save to test HMR |
| 30 | </p> |
| 31 | </div> |
| 32 | <p className="read-the-docs"> |
| 33 | Click on the Vite and React logos to learn more |
| 34 | </p> |
| 35 | </counterContext.Provider> |
| 36 | </> |
| 37 | ) |
| 38 | } |
| 39 | |
| 40 | export default App |
nothing calls this directly
no outgoing calls
no test coverage detected