UNPKG

@raulpesilva/re-state

Version:

easy way to create a shared state to the entire application

4 lines (3 loc) 196 B
import { shallowEqual } from './utils'; import type { Selector } from './types'; export declare function useReStateSelector<T, S = T>(selector: Selector<T, S>, isEquals?: typeof shallowEqual): S;