Skip to content

Commit

Permalink
Merge pull request #5211 from ccnmtl/INFRA-2430-react-18-hydrogen
Browse files Browse the repository at this point in the history
Update to React 18
  • Loading branch information
nikolas authored Oct 9, 2023
2 parents e1987ea + 8db3c5a commit c21864f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hydrogen-atom-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"jquery": "^3.5.1",
"pixi.js": "^5.2.3",
"popper.js": "^1.16.0",
"react": "^16.13.1",
"react": "^18.2.0",
"react-bootstrap": "^1.0.1",
"react-dom": "^16.13.1",
"react-range-step-input": "^1.2.4"
"react-dom": "^18.2.0",
"react-range-step-input": "github:Evan-CTL/react-range-step-input"
},
"devDependencies": {
"@babel/core": "^7.9.6",
Expand Down
5 changes: 3 additions & 2 deletions hydrogen-atom-simulator/src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import HydrogenAtomSimulator from './HydrogenAtomSimulator.jsx';

const domContainer = document.querySelector('#sim-root');
ReactDOM.render(<HydrogenAtomSimulator />, domContainer);
const root = createRoot(domContainer);
root.render(<HydrogenAtomSimulator />);

0 comments on commit c21864f

Please sign in to comment.