Skip to content

Commit

Permalink
refactor: 구조 분해 할당 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
YuHyun-P committed Dec 13, 2023
1 parent ea2a8df commit 3759802
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/frontend/src/components/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ export function Editor({ initialFile, onSubmit }: EditorProps) {
const handleTextareaOnChange: ChangeEventHandler<HTMLTextAreaElement> = (
event,
) => {
const { target } = event;
const { value, selectionStart, selectionEnd } = target;
const {
target: { value, selectionStart, selectionEnd },
} = event;

const key = (event.nativeEvent as InputEvent).data;
event.preventDefault();
Expand Down

0 comments on commit 3759802

Please sign in to comment.