mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
22 lines
443 B
TypeScript
22 lines
443 B
TypeScript
import singleSpaReact = require("single-spa-react");
|
|
import { Lifecycles } from "single-spa-react";
|
|
import * as React from "react";
|
|
import * as ReactDOM from "react-dom";
|
|
|
|
interface customProps {
|
|
name: string;
|
|
}
|
|
|
|
class rootComponent extends React.Component<customProps> {
|
|
render() {
|
|
return <div> hello{this.props.name} !</div>;
|
|
}
|
|
}
|
|
|
|
// $ExpectType Lifecycles
|
|
singleSpaReact({
|
|
React,
|
|
ReactDOM,
|
|
rootComponent
|
|
});
|