Add Entry

This commit is contained in:
2022-01-13 17:09:14 +08:00
parent 8fd3d27a9e
commit 9374464186
3 changed files with 22 additions and 2 deletions
View File
+20
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) {
}
}