silverwolf-x's picture
download
raw
744 Bytes
"use client";
import type { MouseEvent } from "react";
import Link from "next/link";
import { useCount, useDispatchCount } from "@/_components/Counter";
export default function Home() {
const count = useCount();
const dispatch = useDispatchCount();
const handleIncrease = (event: MouseEvent<HTMLButtonElement>) =>
dispatch({
type: "INCREASE",
});
const handleDecrease = (event: MouseEvent<HTMLButtonElement>) =>
dispatch({
type: "DECREASE",
});
return (
<>
<h1>HOME</h1>
<p>Counter: {count}</p>
<button onClick={handleIncrease}>Increase</button>
<button onClick={handleDecrease}>Decrease</button>
<p>
<Link href="/about">About</Link>
</p>
</>
);
}

Xet Storage Details

Size:
744 Bytes
·
Xet hash:
f912ad1299f6868dc63113791702ec19fac70490a59a65b273b1a2a79f547d88

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.