diff --git a/.eslintrc.js b/.eslintrc.js index 87b78fc7e0..2edf6fe861 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -46,5 +46,10 @@ module.exports = { ], "no-console": "error", "react/prop-types": 0 + }, + "settings": { + "react": { + "version": "detect" + } } } \ No newline at end of file diff --git a/src/index.jsx b/src/index.jsx index 1a092e3d87..8ad3786281 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -1,5 +1,5 @@ import React from 'react' -import ReactDOM from 'react-dom' +import { createRoot } from 'react-dom' import App from './App' const root = createRoot(document.getElementById('root'));