@codewell/state-logger

Log JavaScript states and actions

Usage no npm install needed!

<script type="module">
  import codewellStateLogger from 'https://cdn.skypack.dev/@codewell/state-logger';
</script>

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