내 React 프로젝트를 linting하기 위해 airbnb
확장자를 사용하고 있습니다. 이제 내 index.js
에서 내가 가진 :문서에 대한 linter 오류 no-undef 해결
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root'),
);
린터가 말한다 :
no-undef 'document' is not defined.at line 8 col 3
가 어떻게이 문제를 해결할 수 있습니까?
매우 CLE ar 명령. 감사. – Viraths