Add Entry

This commit is contained in:
MrKBear 2022-01-13 17:09:14 +08:00
parent 8fd3d27a9e
commit 9374464186
3 changed files with 22 additions and 2 deletions

View File

View File

@ -0,0 +1,20 @@
import { Component, ReactNode, StrictMode } from "react";
import { render } from "react-dom";
class Entry extends Component<{}, {}> {
render(): ReactNode {
return (
<StrictMode>
{this.props.children}
</StrictMode>
);
}
/**
*
* @param component
*/
public static renderComponent(component: new () => Component) {
}
}

View File

@ -1,4 +1,4 @@
import { Component, ReactNode } from "react"; import { Component, ReactNode, StrictMode } from "react";
import { render } from "react-dom"; import { render } from "react-dom";
import { Group } from "@Model/Group"; import { Group } from "@Model/Group";
import "./Laboratory.scss"; import "./Laboratory.scss";
@ -13,7 +13,7 @@ class Test extends Component {
} }
render( render(
<Test></Test>, <StrictMode><Test></Test></StrictMode>,
document.getElementById("root") document.getElementById("root")
); );