react-repatch
v1.0.3
Published
react-redux optimized for repatch.
Downloads
10
Readme
React Repatch
React bindings for Repatch.
Examples
import { connect } from 'react-repatch'
const Counter = ({ counter, increment }) => [
<p>Counter value: {counter}</p>,
<button onClick={() => increment(5)}>Add 5</button>
];
const increment = (state, amount) => ({
...state,
counter: state.counter + amount
});
export default connect(state => ({
counter: state.counter
}), {
increment
})(Counter);
Installation
npm install --save react-repatch