Skip to content

Commit

Permalink
Merge pull request #5209 from ccnmtl/INFRA-2428-react-18-gas
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 0e6959f + 1295916 commit 28d61b4
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 39 deletions.
60 changes: 27 additions & 33 deletions gas-retention-simulator/package-lock.json

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

8 changes: 4 additions & 4 deletions gas-retention-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"eslint-plugin-security": "^1.4.0",
"matter-js": "^0.19.0",
"pixi.js": "~7.3.0",
"react": "~17.0.1",
"react-dom": "~17.0.1",
"react-range-step-input": "^1.3.0"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-range-step-input": "github:Evan-CTL/react-range-step-input"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@babel/eslint-parser": "^7.15.8",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/eslint-parser": "^7.15.8",
"babel-loader": "^9.0.1",
"eslint": "^8.0.1",
"eslint-plugin-react": "~7.32.0",
Expand Down
5 changes: 3 additions & 2 deletions gas-retention-simulator/src/main.jsx
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 * as PIXI from 'pixi.js';
import {RangeStepInput} from 'react-range-step-input';
import Chamber from './Chamber';
Expand Down Expand Up @@ -686,4 +686,5 @@ class GasRetentionSimulator extends React.Component {
}

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

0 comments on commit 28d61b4

Please sign in to comment.