Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🤖 A functional, immutable Finite State Machine library

License

NotificationsYou must be signed in to change notification settings

kayodebristol/robot

 
 

The Robot logo, with green background.

A small functional and immutable Finite State Machine library. Using state machines for your components brings the declarative programming approach to application state.

Seethisrobot.life for the main documentation.

import{createMachine,interpret,state,transition}from'robot3';letmachine=createMachine({off:state(transition('toggle','on')),on:state(transition('toggle','off'))});constservice=interpret(machine,()=>{render();});

Testing

Tests are located in thetest/ folder. Loadtest/test.html in your browser of choice with any HTTP server you like (I usehttp-server). Tests are written inQUnit and are simple to understand.

Integrations

Robot works with a variety of UI libraries, and includes integrations for React, Preact, Haunted, and more. See theintegrations page to learn more.

License

BSD-2-Clause

About

🤖 A functional, immutable Finite State Machine library

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript97.6%
  • HTML1.7%
  • Makefile0.7%

[8]ページ先頭

©2009-2025 Movatter.jp