"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) => dispatch({ type: "INCREASE", }); const handleDecrease = (event: MouseEvent) => dispatch({ type: "DECREASE", }); return ( <>

HOME

Counter: {count}

About

); }