Update to React 18
This commit is contained in:
@ -39,5 +39,7 @@ const ErrorButton = () => {
|
||||
return <button onClick={clickHandler}>Throw error</button>;
|
||||
};
|
||||
|
||||
ReactDOM.render(<ErrorButton />, document.getElementById('root'));
|
||||
ReactDOM.createRoot(document.getElementById('root')).render(
|
||||
<ErrorButton />
|
||||
);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user