"use client"; import type { MouseEvent } from "react"; import Link from "next/link"; import { useCount, useDispatchCount } from "@/_components/Counter"; export default function About() { const count = useCount(); const dispatch = useDispatchCount(); const handleIncrease = (event: MouseEvent) => dispatch({ type: "INCREASE", }); const handleIncrease15 = (event: MouseEvent) => dispatch({ type: "INCREASE_BY", payload: 15, }); return ( <>

ABOUT

Counter: {count}

Home

); }