react-singletons
Version:
React Singletons brings the singleton pattern to React components. This module allows applications to create components that live outside of your application with shared states for popups and overlays.
9 lines • 528 B
TypeScript
import { Component, ReactNode } from "react";
import { ISingletonComponentWrapperProps } from "../Interface/ISingletonComponentWrapperProps";
import { ISingletonComponentWrapperState } from "../Interface/ISingletonComponentWrapperState";
export declare class SingletonComponentWrapper extends Component<ISingletonComponentWrapperProps, ISingletonComponentWrapperState> {
state: ISingletonComponentWrapperState;
componentDidMount(): void;
render(): ReactNode;
}
//# sourceMappingURL=SingletonComponentWrapper.d.ts.map