Simple finite state machine react component that can be edited graphically and evaluated programmatically