TIL

[TIL] 20220103 에러

자바칩 프라푸치노 2022. 1. 4. 10:04

1. 2022.01.11 - [에러노트] - [에러노트] Warning: validateDOMNesting(...):

 

[에러노트] Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>.

[문제] p 태그 안에는 한정된 태그만 들어올 수 있다는 것 [해결방법] span 태그로 바꾸면 됨

sso-feeling.tistory.com

 

2. Prevent missing props validation in a React component definition (react/prop-types)

https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md

 

GitHub - yannickcr/eslint-plugin-react: React specific linting rules for ESLint

React specific linting rules for ESLint. Contribute to yannickcr/eslint-plugin-react development by creating an account on GitHub.

github.com

 

3. Visible, non-interactive elements with click handlers must have at least one keyboard listener.

https://velog.io/@msh/React-Visible-non-interactive-elements-with-click-handlers-must-have-at-least-one-keyboard-listener

 

[ESLint] Visible, non-interactive elements with click handlers must have at least one keyboard listener.

해석하면 비 대화형 요소의 클릭핸들러에는 적어도 하나의 키보드 리스너가 있어야 한다는 뜻 이다.

velog.io

 

728x90