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

    Keywords

    Install

    npm i react-repatch

    DownloadsWeekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    1.43 kB

    Total Files

    3

    Last publish

    Collaborators

    • lexarx