@platform/react.ssr
Version:
A lightweight SSR (server-side-rendering) system for react apps bundled with ParcelJS and hosted on S3.
20 lines (19 loc) • 516 B
TypeScript
import * as React from 'react';
import { GlamorValue } from '../common';
export declare type IMainProps = {
style?: GlamorValue;
};
export declare type IMainState = {
count?: number;
foo?: JSX.Element;
};
export declare class Main extends React.PureComponent<IMainProps, IMainState> {
state: IMainState;
private state$;
private unmounted$;
constructor(props: IMainProps);
componentWillUnmount(): void;
readonly count: number;
render(): JSX.Element;
private handleClick;
}