[TIL] React no-template-curly-in-string

숭글·2022년 6월 5일
0

기타

목록 보기
3/13
alt = {'${provider} 로그인'}

라는 코드를 썼는데

잘 먹히지도 않을 뿐더러

Unexpected template string expression        no-template-curly-in-string

라는 에러가 떴다..

검색해보니 ${}를 써서 변수 값을 쓸 때
"이나 ' 가 아닌.. `를 써야했다..
좋은 교훈.

profile
Hi!😁 I'm Soongle. Welcome to my Velog!!!

0개의 댓글