1.0.2 • Published 7 years ago

react-redux-connectme v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

react-redux-connectme

How to use

npm install react-redux-connectme --save

In your react index file

import * as actionsCreators from './actions/actionCreators'
import { addActionCreators } from 'react-redux-connectme'

addActionCreators(actionsCreators)

And in all you components that use redux state

import connect from 'react-redux-connectme'

class App extends Component {

  render() {
    return (
      <div
        onClick={this.props.someActionFunction}
      >
        {this.props.someData}
      </div>
    )
  }
}

export default connect(App, (state) => ({
  // add state to connect here, ex:
  someData: state.someData,
  someActionFuncion: state.someActionFunction,
}))
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago