@tdb/web
Version:
Common condiguration for serving a web-site and testing web-based UI components.
18 lines (17 loc) • 499 B
TypeScript
/// <reference types="react" />
import { React } from '../common';
import { NextDocumentContext } from 'next/document';
export interface IPageProps {
id: string;
path: string;
q: string;
}
export default class Page extends React.PureComponent<IPageProps> {
static getInitialProps(ctx: NextDocumentContext): {
path: string;
id: string | string[] | undefined;
q: string | string[] | undefined;
};
componentDidMount(): void;
render(): JSX.Element;
}