Skip to content

Commit

Permalink
chore: upgrade to React 18 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
astone123 authored Sep 2, 2023
1 parent d0ea1b3 commit f60c421
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 39 deletions.
60 changes: 27 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"axios": "^0.26.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-paginate": "^8.1.3",
"react-router-dom": "^6.4.2",
"typescript": "^4.8.4",
Expand Down
9 changes: 5 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import './index.css';
import App from './App';

import React from 'react';
import ReactDOM from 'react-dom';
import {createRoot} from 'react-dom/client';

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

0 comments on commit f60c421

Please sign in to comment.