DefinitelyTyped/types/single-spa-react/single-spa-react-tests.tsx
2019-01-20 19:02:32 -08:00

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
});