Update to React 18
This commit is contained in:
@ -27,5 +27,7 @@ const Mounter = () => {
|
||||
return <div>Check the console!</div>;
|
||||
};
|
||||
|
||||
ReactDOM.render(<Mounter />, document.getElementById('root'));
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<Mounter />
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user