Skip to content

Commit

Permalink
ets: update react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ndittren committed Oct 10, 2023
1 parent 4b1b79c commit 1504700
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 46 deletions.
76 changes: 35 additions & 41 deletions exoplanet-transit-simulator/package-lock.json

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

6 changes: 3 additions & 3 deletions exoplanet-transit-simulator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"d3-drag": "~3.0.0",
"eslint-plugin-security": "^1.4.0",
"pixi.js": "~7.2.4",
"react": "~17.0.1",
"react-dom": "~17.0.1",
"react-range-step-input": "^1.2.1"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-range-step-input": "github:nikolas/react-range-step-input"
},
"devDependencies": {
"@babel/core": "^7.5.5",
Expand Down
5 changes: 3 additions & 2 deletions exoplanet-transit-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 Lightcurve from './Lightcurve';
import LightcurveView from './LightcurveView';
import TransitView from './TransitView';
Expand Down Expand Up @@ -659,4 +659,5 @@ class ExoplanetTransitSimulator extends React.Component {
}

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

0 comments on commit 1504700

Please sign in to comment.