Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 401 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 401 Bytes

@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