@codewell/state-logger
v1.1.0
Published
Log JavaScript states and actions
Downloads
10
Readme
@codewell/state-logger
State logger for JavaScript states Redux-style
Installation
npm install @codewell/state-logger
Basic usage
import stateLogger from '@codewell/state-logger';
const state = {};
const action = {type, payload};
const nextState = getNextState(state, action); // Somehow
stateLogger(state, action, nextState); // Will log the state in nice colors