upgrade to react 17 code example
Example: react 17 install
const rootNode = document.getElementById('root');
ReactDOM.render(<App />, rootNode);
const rootNode = document.getElementById('root');
ReactDOM.render(<App />, rootNode);