Skip to content
Version: xstate@5.0.0

mapState() function​

Signature:

export declare function mapState(stateMap: {
[stateId: string]: any;
}, stateId: string): any;

Parameters​

ParameterTypeDescription
stateMap{ [stateId: string]: any; }
stateIdstring

Returns:

any