Skip to content
Version: xstate@5.0.0

createActor() function​

Signature:

export declare function createActor<TLogic extends AnyActorLogic>(logic: TLogic, options?: ActorOptions<TLogic>): Actor<TLogic>;

Parameters​

ParameterTypeDescription
logicTLogic
optionsActorOptions<TLogic>(Optional)

Returns:

Actor<TLogic>