actionmapjs

0.1.1 • Public • Published

Matejs

Abstract

This is not a real library, instead this is an exploration of how to improve my work with Redux and React Redux, please don't use this in production.

The reason I'm playing around with this library is because I think that metaphor or a Reducer is not close enough, we are not reducing our state, we are mapping over it. This library explores this idea.

Consider following example:

import {createStore, allowEventType} from 'matejs'

const createIncrementEvent = (previousCount) => ({type: 'increment', payload: previousCount})
// It looks much better with Ramda lenses ;)
const mapCount = ({payload}) => payload





Dependents (0)

Package Sidebar

Install

npm i actionmapjs

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • nirth