LitElement hooks for Robot finite state machines
npm install lit-robotLitElement integration with Robot.
See documentation on the website.
``js
import { Robot } from 'lit-robot';
import { LitElement, html } from 'lit-element';
import { html } from 'htm/prect';
class MyApp extends Robot(LitElement) {
static machine = createMachine({
one: state(
transition('next', 'two')
),
two: state()
});
render() {
let { send } = this.service;
let current = this.machine.state;
return html
;``
}
}
* Please star the repository on GitHub.
* File an issue if you find a bug. Or better yet...
* Submit a pull request to contribute.
BSD-2-Clause