반응형
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Linux
- Github
- Dunk Low
- 나이키
- 덩크 로우
- 주식공부
- 주식
- Python
- 파이썬
- stockx.com
- 발매예정
- 자바스크립트
- jQuery
- GIT
- dunklow
- 덩크 하이
- 리액트
- sacai
- 리눅스
- JavaScript
- react
- 코로나19
- 드로우
- 오라클
- dunk high
- 제이쿼리
- 덩크로우
- oracle
- Nike
- draw
Archives
- Today
- Total
Life goes slowly...
[React] react.js의 HTML <a> 태그 관련 에러 본문
728x90
반응형
react.js의 HTML <a> 태그 관련 Error 발생
The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles.
React에서 흔히 볼 수 있는 에러입니다. 이는 코드규칙을 관리할때 사용되는 라이브러리 eslint에서 제공되는 경고로써 react.js의 <a> 태그를 사용할 때에는 href의 유효성값이 필요하다는 Error입니다.
The href attribute requires a valid value to be accessible.
Provide a valid, navigable address as the href value.
If you cannot provide a valid href, but still need
the element to resemble a link, use a button and change
it with appropriate styles.
//잘못된 코드
<a href="#">Naver</a>
//수정된 코드
<a href="#!">Naver</a>
<a href="{()=>false}">Naver</a>
728x90
반응형
'프로그래밍 > React.js' 카테고리의 다른 글
ag-Grid-React Excel 다운로드 (0) | 2025.05.21 |
---|---|
ag-Grid-React Row 편집 (0) | 2025.05.18 |
ag-Grid-React 사용자 정의 셀 렌더러 (0) | 2025.05.17 |
ag-Grid-React 라이브러리의 option (0) | 2025.05.14 |
[React] react.js의 HTML img 태그 관련 에러 (0) | 2022.07.05 |
[React] Invalid DOM property `for`. Did you mean `htmlFor`에러 (0) | 2022.05.12 |
[React] Expected `onClick` listener to be a function, instead got `false` 에러 (0) | 2022.05.09 |
[React] React.js 의 popup창에서 부모창의 함수 호출 (0) | 2022.04.19 |
Comments