dnd-side-project / dnd-10th-5-frontend

저장한 링크를 한눈에, favolink
https://favolink.site
11 stars 0 forks source link

feat(ui/hooks): useCallbackRef hook 추가 #299

Closed sukvvon closed 2 months ago

sukvvon commented 2 months ago

이슈 번호

작업한 목록을 작성해 주세요

스크린샷

pr 포인트나 궁금한 점을 작성해 주세요

// useMemo 사용

return useMemo(() => ((...args) => callbackRef.current?.(...args)) as T, []);

// useCallback 사용

// eslint-disable-next-line react-hooks/exhaustive-deps
return useCallback(((...args) => callbackRef.current?.(...args)) as T, []);
image
vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
favolink-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 6, 2024 1:02pm