flovv
v2.1.17
Published
A library for controlling app flows with ease
Downloads
118
Maintainers
Readme
FLOVV
A library for controlling app flows with ease
Installation
NPM
npm i flovv --save
YARN
yarn add flovv
React Bindings
Redux Bindings
import { createController } from "flovv";
import { select, dispatch } from "flovv/redux";
import { createStore } from "redux";
const store = createStore((state = 0, { type }) => {
if (type === "increment") return state + 1;
return state;
});
function* Increment() {
const count = yield select((state) => state);
yield dispatch({ type: "increment" });
}