타입스크립트 첨 배우는데
const onChange = (event: React.Format<HTMLInputElement>) => {
const [value, setValue] = useState("");
const {
currentTarget: { value } ,
} = event;
}
이거에서
const {
currentTarget: { value } ,
} = event;
이게 무슨 형식임???
const 이름 = 45456;
이런 형식이나
const 이름 =() => {};
이런건 많이 봤는데 저건 첨 봐요
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
제
생각엔 이걸보시면 알 수 잇을 것 같아요
감사합니다 읽으러 가볼게요