Skip to content

Commit

Permalink
chore: clouder keys
Browse files Browse the repository at this point in the history
  • Loading branch information
echarles committed Oct 2, 2023
1 parent 539f1a9 commit 6bf8031
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"@types/react": "18.2.12",
"@types/react-dom": "18.2.5",
"@types/styled-components": "5.1.26",
"@types/webpack-env": "1.18.2",
"@typescript-eslint/eslint-plugin": "4.8.1",
"@typescript-eslint/parser": "4.8.1",
"babel-loader": "9.1.2",
Expand Down
6 changes: 4 additions & 2 deletions src/DatalayerApp.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
///<reference types="webpack-env" />

import { createRoot } from 'react-dom/client';
import DatalayerJupyterLabHeadless from './DatalayerJupyterLabHeadless';

const div = document.createElement('div');
document.body.appendChild(div);
const root = createRoot(div);

if ((module as any).hot) {
(module as any).hot.accept('./DatalayerJupyterLabHeadless', () => {
if (module.hot) {
module.hot.accept('./DatalayerJupyterLabHeadless', () => {
const DatalayerJupyterLabHeadless = require('./DatalayerJupyterLabHeadless').default;
root.render(<DatalayerJupyterLabHeadless/>);
})
Expand Down

0 comments on commit 6bf8031

Please sign in to comment.