UNPKG

@rbxts/rodux-hooks

Version:

Port of littensy's roact-rodux-hooked for kampf's RoactHooks library.

15 lines (14 loc) 513 B
/// <reference types="rodux" /> import Roact from "@rbxts/roact"; import type { Action, AnyAction, Store } from "@rbxts/rodux"; export interface IProviderProps<A extends Action = AnyAction> { /** * The single Rodux store in your application. */ store: Store<any, A>; } /** * Makes the Rodux store available to the `useStore()` calls in the component hierarchy below. */ export declare const Provider: (props: IProviderProps<AnyAction>) => Roact.Element; export default Provider;