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