Skip to content

Commit c4ae41d

Browse files
committed
NPM updates
1 parent aff5304 commit c4ae41d

File tree

5 files changed

+4377
-4380
lines changed

5 files changed

+4377
-4380
lines changed

demo/src/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { render } from 'react-dom';
1+
import { createRoot } from 'react-dom/client';
22
import { ReactNode, useState } from 'react';
33
import './demo.css';
44
import ReactHyperResponsiveTable from '../../src';
@@ -81,4 +81,6 @@ const Demo = () => {
8181
);
8282
};
8383

84-
render(<Demo />, document.querySelector('body'));
84+
const container = document.querySelector('body');
85+
const root = createRoot(container); // createRoot(container!) if you use TypeScript
86+
root.render(<Demo />);

demo/src/rollup.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import commonjs from '@rollup/plugin-commonjs';
77
import html from '@rollup/plugin-html';
88
import terser from '@rollup/plugin-terser';
99
import replace from '@rollup/plugin-replace';
10-
import pkg from '../../package.json' assert { type: 'json' };
10+
import pkg from '../../package.json' with { type: 'json' };
1111

1212
const inputDir = dirname(fileURLToPath(import.meta.url));
1313
const outputDir = join(inputDir, '..', 'dist');

0 commit comments

Comments
 (0)