File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- npx lint-staged
1+ npx lint-staged
Original file line number Diff line number Diff line change 1- import { useState } from "react" ;
2- import reactLogo from "./assets/react.svg" ;
3- import viteLogo from "/vite.svg" ;
41import "./App.css" ;
52
63function App ( ) {
7- const [ count , setCount ] = useState ( 0 ) ;
8-
9- return (
10- < >
11- < div >
12- < a href = "https://vite.dev" rel = "noreferrer noopener" target = "_blank" >
13- < img src = { viteLogo } className = "logo" alt = "Vite logo" />
14- </ a >
15- < a href = "https://react.dev" rel = "noreferrer noopener" target = "_blank" >
16- < img src = { reactLogo } className = "logo react" alt = "React logo" />
17- </ a >
18- </ div >
19- < h1 > Vite + React</ h1 >
20- < div className = "card" >
21- < button
22- onClick = { ( ) => {
23- setCount ( ( count ) => count + 1 ) ;
24- } }
25- >
26- count is { count }
27- </ button >
28- < p >
29- Edit < code > src/App.tsx</ 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- </ >
36- ) ;
4+ return < h1 > Code Café Community</ h1 > ;
375}
386
397export default App ;
You can’t perform that action at this time.
0 commit comments