import React, { useState, MouseEvent } from "react"; import { PostType } from "./typesrc"; type Props = { post: PostType; } export default function Post({ post }: Props) { const [count, setCount] = useState(0); // const titleHandleClick = (event:MouseEvent) => { // setCount(count + 1) // } return (
{/*title */}
{post.date}
{count}
); }