본문 바로가기

🤍 은지log 🤍

검색하기
🤍 은지log 🤍
프로필사진 Eun_zii

  • 🫶🏻 console.log(coding) 🫶🏻 (244)
    • *⁀➷♥ (0)
    • 💙 React (30)
    • 🌈 프로그래머스 (150)
    • 🌷 Next JS (9)
    • 🍓 Vue (2)
    • 💚 DevOps (15)
    • 🐥 TIP (13)
    • 🌸 Library (5)
    • 🍊 Grammar (7)
    • 💜 모던Javascript (12)
Guestbook
Recent Posts
«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Tags
  • GitHub
  • ReactSlide
  • NPM Package
  • Git
  • sonarQube
  • CI/CD
  • API
  • deepdive
  • bootstrap
  • useQuery
  • infiniteScroll
  • DevOps
  • JavaScript
  • Level.0
  • NextJS
  • Jenkins
  • docker
  • EC2
  • react
  • 모던자바스크립트
  • 모음제거
  • NAVERAPI
  • 자바스크립트
  • gitea
  • 검색
  • useEffect
  • 프로그래머스
  • reactQuery
  • Naver
  • npm
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록href (1)

🤍 은지log 🤍

[NextJS] Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? - Next/Link의 children으로 component를 줬을때 생기는 error 입니다. 이 코드에서 error가 발생했을시 , 1. component를 a tag로 감싸줍니다. // 수정된 코드 2. a태그를 styledComponents로 감싸주면 a tag의 lint error가 사라집니다. const CustomLink = styled.a``; // styled-components 부분 3. 공식문서의 주의사항을 참고하여 passHref를 추가해줍니다.

🐥 TIP 2023. 3. 26. 18:51
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바