Skip to content

Commit

Permalink
chore(test-react-app): refactor deprecated call to ReactDOM.render (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nickreynolds authored Oct 31, 2024
1 parent 12aa854 commit cdf9b3d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/test-react-app/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import './global'
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);

const container = document.getElementById('root');
const root = createRoot(container!);
root.render(<React.StrictMode>
<App />
</React.StrictMode>);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
Expand Down

0 comments on commit cdf9b3d

Please sign in to comment.