react-repatch

1.0.3 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i react-repatch

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    1.43 kB

    Total Files

    3

    Last publish

    Collaborators

    • lexarx