redux-formula

0.1.0 • Public • Published

redux-formula

An alternative way for defining your redux selectors.

import { formulaSelector } from 'redux-formula';
import { connect } from 'react-redux';

const Component = ({ a, b, c }) => (
  <span>{a} + {b} = {c}</span>
);

connect(
  formulaSelector({
    a: '$0.a',
    b: '$0.b',
    c: { $add: ['$a', '$b'] },
  }),
)(Component);

Readme

Keywords

Package Sidebar

Install

npm i redux-formula

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

102 kB

Total Files

48

Last publish

Collaborators

  • tomasz_lenarcik