MCPcopy Create free account
hub / github.com/SuboptimalEng/coding-tutorials / App

Function App

_templates/02-vite-electron/src/renderer/App.tsx:5–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import './App.css';
4
5function App() {
6 const [count, setCount] = useState(0);
7
8 return (
9 <div className="App">
10 <header className="App-header">
11 <img src={logo} className="App-logo" alt="logo" />
12 <p>Hello Vite + React!</p>
13 <p>
14 <button type="button" onClick={() => setCount((count) => count + 1)}>
15 count is: {count}
16 </button>
17 </p>
18 <p>
19 Edit <code>App.tsx</code> and save to test HMR updates.
20 </p>
21 <p>
22 <a
23 className="App-link"
24 href="https://reactjs.org"
25 target="_blank"
26 rel="noopener noreferrer"
27 >
28 Learn React
29 </a>
30 {' | '}
31 <a
32 className="App-link"
33 href="https://vitejs.dev/guide/features.html"
34 target="_blank"
35 rel="noopener noreferrer"
36 >
37 Vite Docs
38 </a>
39 </p>
40 </header>
41 </div>
42 );
43}
44
45export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected