File tree Expand file tree Collapse file tree 2 files changed +9
-27
lines changed Expand file tree Collapse file tree 2 files changed +9
-27
lines changed 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'
1+ import { Button } from "@/components/ui/button"
42import './App.css'
53
64function App ( ) {
7- const [ count , setCount ] = useState ( 0 )
5+
86
97 return (
10- < >
11- < div >
12- < a href = "https://vite.dev" target = "_blank" >
13- < img src = { viteLogo } className = "logo" alt = "Vite logo" />
14- </ a >
15- < a href = "https://react.dev" 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 onClick = { ( ) => setCount ( ( count ) => count + 1 ) } >
22- count is { count }
23- </ button >
24- < p >
25- Edit < code > src/App.tsx</ code > and save to test HMR
26- </ p >
27- </ div >
28- < p className = "read-the-docs" >
29- Click on the Vite and React logos to learn more
30- </ p >
31- </ >
8+ < div className = "flex min-h-svh flex-col items-center justify-center" >
9+ < Button > Click me</ Button >
10+ </ div >
3211 )
3312}
3413
Original file line number Diff line number Diff line change @@ -57,4 +57,7 @@ function Button({
5757 )
5858}
5959
60- export { Button , buttonVariants }
60+ export {
61+ Button ,
62+ buttonVariants
63+ }
You can’t perform that action at this time.
0 commit comments