init
This commit is contained in:
21
src/pages/home/index.tsx
Normal file
21
src/pages/home/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import "./index.css";
|
||||
import { useGlobalStore } from "@/store/global";
|
||||
|
||||
function Home() {
|
||||
const { count, increment } = useGlobalStore((state) => state);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
<div className="text-3xl font-bold underline">Hello World</div>
|
||||
</div>
|
||||
<h1>Vite + React</h1>
|
||||
<button type="button" onClick={increment}>
|
||||
Increment
|
||||
</button>
|
||||
<p>Count: {count}</p>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Home;
|
||||
Reference in New Issue
Block a user