Skip to content

Commit

Permalink
feat: update to React 18
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirsamdarshi committed May 9, 2024
1 parent 5ea4034 commit 52ea157
Show file tree
Hide file tree
Showing 3 changed files with 12,622 additions and 12,221 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"lodash": "^4.17.21",
"popper.js": "^1.16.1",
"prop-types": "15.8.1",
"react": "17.0.1",
"react": "18.3.1",
"react-bootstrap-typeahead": "6.3.2",
"react-chartjs-2": "^2.8.0",
"react-dom": "17.0.1",
"react-dom": "18.3.1",
"react-google-recaptcha": "^3.1.0",
"react-helmet": "^6.1.0",
"react-redux": "8.0.5",
Expand Down
6 changes: 4 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom';
import { install } from 'ga-gtag';
import trackingId from './GoogleAnalytics/googleAnalytics';
import App from './App/App';
Expand All @@ -8,7 +8,9 @@ import './sass/main.scss';

install(trackingId());

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

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
Expand Down
Loading

0 comments on commit 52ea157

Please sign in to comment.