Add Entry
This commit is contained in:
parent
8fd3d27a9e
commit
9374464186
0
source/Page/Entry/Entry.scss
Normal file
0
source/Page/Entry/Entry.scss
Normal file
20
source/Page/Entry/Entry.tsx
Normal file
20
source/Page/Entry/Entry.tsx
Normal 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) {
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
import { Component, ReactNode } from "react";
|
||||
import { Component, ReactNode, StrictMode } from "react";
|
||||
import { render } from "react-dom";
|
||||
import { Group } from "@Model/Group";
|
||||
import "./Laboratory.scss";
|
||||
@ -13,7 +13,7 @@ class Test extends Component {
|
||||
}
|
||||
|
||||
render(
|
||||
<Test></Test>,
|
||||
<StrictMode><Test></Test></StrictMode>,
|
||||
document.getElementById("root")
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user