react-torch
Version:
A lib to server-side render with react.
10 lines (9 loc) • 632 B
TypeScript
import type { StoreLike } from '../store';
export { usePageSetup } from '../../internal/hook';
export declare const useLocation: () => import("torch-history").Location<import("torch-history").State>;
export declare const useHistory: () => import("torch-history").History<import("torch-history").State>;
export declare const useTorchContext: () => import("../..").Context;
export declare const useParams: () => import("torch-router").Params;
export declare const useStore: <S extends StoreLike<any>>() => S;
export declare type Selector<S, R> = (state: S) => R;
export declare const useSelector: <S, R>(select: Selector<S, R>) => R;