1.0.3 • Published 6 years ago

react-repatch v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago