Skip to content

Commit

Permalink
Merge pull request #5210 from ccnmtl/INFRA-2429-react-18-eclipse
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 28d61b4 + 7923d64 commit e1987ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions eclipsing-binary-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 eclipsing-binary-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"d3-drag": "~3.0.0",
"eslint-plugin-security": "^1.4.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.33.2",
Expand Down
5 changes: 3 additions & 2 deletions eclipsing-binary-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 {RangeStepInput} from 'react-range-step-input';
import LightcurveView from './LightcurveView';
import BinarySystemView from './BinarySystemView';
Expand Down Expand Up @@ -1321,4 +1321,5 @@ class EclipsingBinarySimulator extends React.Component {
}

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

0 comments on commit e1987ea

Please sign in to comment.