728x90
"rules": {
...
"react/react-in-jsx-scope": "off",
},
React 17부터 import React fro 'react'문을 사용하지 않아도 되나, eslint에서 오류가 발생합니다.
rule에 react/react-in-jsx-scope를 off 설정을 해주며 eslint 오류를 피할 수 있습니다.
'Error Note' 카테고리의 다른 글
[Error] Webpack bundling 후 status code 304 (0) | 2023.04.07 |
---|---|
[Error] warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>. (0) | 2023.04.07 |