---
title: "yeonsu (@yeonsu) | Hashnode"
description: "yeonsu (@yeonsu) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@yeonsu"
---

@yeonsu

# yeonsu

@yeonsu · Joined December 2023

### [시맨틱하게 다이얼로그 만들기](https://yeonsu.hashnode.dev/semantic-dialog?utm_source=hashnode&utm_medium=feed)

웹에서 양식을 제출하기 위한 다이얼로그를 작성할 때 시맨틱 태그를 무시하고 div 태그를 활용해 css로 스타일링을 하는 경우가 많다. 이렇게 작성할 경우, 동작에는 전혀 무리가 없지만 하지 않아도 될 스타일링 작업을 하는 데 시간을 쏟을 수 있고 웹접근성 측면에도 좋지 않다. 웹에서 다이얼로그는 모달, 대화상자, 알림창, 검사기와 같은 상호작용 가능한 컴포넌트를 말한다. HTML에서는 dialog 라는 태그를 사용하면 핵심적인 다이얼로그의 기...

2 min read · [yeonsu.hashnode.dev](https://yeonsu.hashnode.dev/semantic-dialog?utm_source=hashnode&utm_medium=feed)

[Jan 13](https://hashnode.com/posts/semantic-dialog/6965eab8f20c25ad3c9294c8)

### [aria-label 사용 시 주의할 점](https://yeonsu.hashnode.dev/aria-label?utm_source=hashnode&utm_medium=feed)

aria-label 사용 시 내부 요소가 전부 무시될 수 있다. 예를 들어, 카드 컴포넌트를 버튼으로 감싸는 경우 : const CardButton = ()=> { return <button aria-label="클릭하여 상세보기"> <div class="card"> <h3>제품명</h3> <p>가격: 29,000원</p> <span>재고 있음</span> </div> </button> } 위...

1 min read · [yeonsu.hashnode.dev](https://yeonsu.hashnode.dev/aria-label?utm_source=hashnode&utm_medium=feed)

[Dec 3, 2025](https://hashnode.com/posts/aria-label/692fa68add0a7169ac6bee05)

### [\[JavaScript\] 이미지 사이즈 압축해서 용량 줄이기](https://yeonsu.hashnode.dev/browser-image-compression?utm_source=hashnode&utm_medium=feed)

이미지를 받아서 저장하는 기능을 구현하고 며칠이 지난 후 한 가지 이슈를 발견하였다. 바로 이미지 업로드가 되지 않는 아주 치명적인 문제였다! 분명 테스트도 수 없이 진행하고 배포한 후에도 잘만 동작했는데 갑자기 이런 일이 왜 벌어진걸까? 문제 해결의 원인을 찾기 위해 다양한 방법을 시도하였다: 갤럭시의 갤러리에 있는 이미지 업로드 갤럭시의 카메라로 직접 찍어서 업로드 아이폰의 갤러리에 있는 이미지 업로드 아이폰의 카메라로 직접 찍어서 ...

2 min read · [yeonsu.hashnode.dev](https://yeonsu.hashnode.dev/browser-image-compression?utm_source=hashnode&utm_medium=feed)

[Nov 16, 2024](https://hashnode.com/posts/browser-image-compression/6737edd1433857f3272497e4)

### [\[JavaScript\] 이미지 수정 시 브라우저 캐싱 방지하기](https://yeonsu.hashnode.dev/javascript-image-cache?utm_source=hashnode&utm_medium=feed)

웹 개발을 하면서 한 번쯤 겪어볼 수 있는 이슈가 있다. A 사용자가 이미지를 업로드하면 B 사용자가 그 이미지를 확인하고, 재업로드를 요청하는 플로우다. A 사용자가 새로운 이미지를 업로드 했는데도 B 사용자는 여전히 처음 이미지를 볼 수 있다. 이 문제는 서버 측에서 "이미지 경로는 그대로 유지하고 이미지를 덮어씌운다"는 구조와 관련이 있다. 브라우저는 URL이 동일하면 캐싱된 이미지를 가져와 네트워크 요청을 줄인다. 따라서 새로운 이미지가...

2 min read · [yeonsu.hashnode.dev](https://yeonsu.hashnode.dev/javascript-image-cache?utm_source=hashnode&utm_medium=feed)

[Oct 3, 2024](https://hashnode.com/posts/javascript-image-cache/66fdfe177a4fd982f1db3fec)

### [\[React\] 렌더링 관점에서 보는 react-hook-form (feat. useRef)](https://yeonsu.hashnode.dev/react-hook-form-render?utm_source=hashnode&utm_medium=feed)

평소 한땀한땀 기능을 만들어나가는 걸 좋아해서 유명한 라이브러리들을 사용해보지 않았는데, 회사에서 프로젝트를 진행하며 다양한 라이브러리를 사용해보았다. 그 중 React-Hook-Form을 사용하며 평소에 리액트로 폼을 작성하며 겪은 불편한 점을 많이 해소했다. 코드 길이, 예외 처리, 렌더링 등 다양한 관점에서 개선할 수 있게 되었다. 오늘은 다양한 폼 상태 관리 방법을 비교하여 React-Hook-Form의 장점을 알아보자. useState...

3 min read · [yeonsu.hashnode.dev](https://yeonsu.hashnode.dev/react-hook-form-render?utm_source=hashnode&utm_medium=feed)

[Sep 5, 2024](https://hashnode.com/posts/react-hook-form-render/66d994715a644c07dd404864)
