upgrade packages and such
This commit is contained in:
@@ -16,7 +16,7 @@ export interface Props {
|
||||
export class ImageSet extends React.PureComponent<Props, {}> {
|
||||
static displayName = "ImageSet";
|
||||
|
||||
private divRef: React.RefObject<HTMLDivElement> = React.createRef();
|
||||
private divRef = React.createRef<HTMLDivElement>();
|
||||
|
||||
render() {
|
||||
return (
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { Root } from "./components/root";
|
||||
|
||||
import * as React from "react";
|
||||
import * as ReactDOM from "react-dom";
|
||||
import { createRoot } from "react-dom/client";
|
||||
|
||||
const body = document.getElementById("mount");
|
||||
|
||||
ReactDOM.render(<Root />, body);
|
||||
const body = document.getElementById("mount") as HTMLElement;
|
||||
const root = createRoot(body);
|
||||
root.render(<Root />);
|
||||
|
||||
Reference in New Issue
Block a user