-
Notifications
You must be signed in to change notification settings - Fork 0
[URH-51] useClipboard 신규 #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔨 refactor: imgToBlob 리팩토링
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고많으셨습니다👍👍
[P4] 이 페이지 와 같이 한 페이지에 여러 개의 복사 기능이 있을 경우, const { copied, copyText } = useClipboard();
return (
<div>
<button onClick={() => copyText('hi')}>
{copied ? 'Copied!' : 'Copy hi'}
</button>
<button onClick={() => copyText('hello')}>
{copied ? 'Copied!' : 'Copy hello'}
</button>
</div>
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다~!! 유용한 훅이네요 👍👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추후 테스트코드까지 추가해시면 될것같네요! 수고많으셨습니다😊
✅ test: useClipboard 테스트 코드 작성
👾 Pull Request
1️⃣ Spec
2️⃣ 변경 사항
3️⃣ 예시 코드
4️⃣ 관련 문서 (선택 사항)