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