Skip to content

Commit

Permalink
update react to version 18
Browse files Browse the repository at this point in the history
  • Loading branch information
pomm0 committed Aug 29, 2024
1 parent 6173fcb commit f97149a
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 65 deletions.
98 changes: 40 additions & 58 deletions package-lock.json

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

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@
},
"dependencies": {
"@faker-js/faker": "^8.4.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^12.1.4",
"@testing-library/react": "^16.0.0",
"formik": "^2.4.6",
"miragejs": "^0.1.48",
"prettier": "2.0.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.1",
"react-scripts": "5.0.1",
"sass": "^1.77.8",
Expand Down
10 changes: 6 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import './styles/app.scss';
import { Main as MainLayout } from 'components/layout/Main';
import { Routes } from 'routes';
Expand All @@ -12,13 +12,15 @@ setupMirage();

setLocale(yupTranslations);

ReactDOM.render(
const container = document.getElementById('root');
const root = createRoot(container);

root.render(
<React.StrictMode>
<BrowserRouter>
<MainLayout>
<Routes />
</MainLayout>
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
</React.StrictMode>
);

0 comments on commit f97149a

Please sign in to comment.