Performing a single switch in reactive-banana
问题 I'm building a multi-modal editor using reactive-banana - and for the most part it's going perfect. To expand on my scenario, the editor is some mapping software, or you could think of it as a very simple vector graphics editor. It currently has two states - selection mode and polygon creation mode . In selection mode, the user is able to select previously created polygons with the right mouse button (which would in theory take you to a new selected mode ) or they can begin creating a new