我正在使用airbnb
擴展名爲linting我的React項目。現在,在我的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