react {}에 들어가는 data나 jsx.element타입

육희영·2023년 2월 15일

회고록

목록 보기
1/24

react {}에 들어가는 data나 jsx.element타입
안되는 경우가 있다 예를 들면
<button aria-label={t('main:label.Modify')}>
이럴땐
1. <button aria-label={t('main:label.Modify') || ''}>
2. <button aria-label={${t('main:label.Modify')}}>
사용하면 된다

0개의 댓글