UNPKG

strikejs-react

Version:

A state management framework for ReactJS applications.

12 lines 480 B
import {Action} from './Action'; import {IManagedState} from './ManagedState'; /** * A function that receives the current state of a {ControllerView} component, and an {Action}, and it returns * either the new state of the {ControllerView} component if the {Action} changes the state, or a * the current state if no changes were made to the state. * @export * @interface Reducer */ export interface Reducer<V>{ (state:IManagedState<V>,action:Action):void; }