theme.tsx 701 Bytes
Newer Older
백승민's avatar
theme1    
백승민 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React, { MouseEvent, MouseEventHandler } from "react";

type ThemeProps = {
  handleClick: MouseEventHandler;
}
export default function Theme({handleClick}: ThemeProps) {
  // const handleClick = (event: MouseEvent<HTMLElement>) => {
  //   console.log(event.currentTarget.id)
  // }

  return (
    <div className="flex flex-cols-10 justify-evenly w-full bg-emerald-400 rounded ">
      <button id={"01"} onClick={handleClick}>01</button>
      <button>02</button>
      <button>03</button>
      <button>04</button>
      <button>05</button>
      <button>06</button>
      <button>07</button>
      <button>08</button>
      <button>09</button>
      <button>10</button>
    </div> 
  ); 
};