본문 바로가기
Front-End/TypeScript

event Type

by kk님 2023. 3. 15.
const handleButton = (e:React.MouseEvent<HTMLButtonElement>) => {
	// e.currentTarget.value
}

const handleInput = (e: React.ChangeEvent<HTMLInputElement>) => {
   	// e.currentTarget.value
  };
  
  const handleSelectOption = (e: React.ChangeEvent<HTMLSelectElement>) => {
   	// e.currentTarget.value
  };