Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/richie-south/react-redux-connectme


https://github.com/richie-south/react-redux-connectme

npm react redux

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# react-redux-connectme [![npm version](https://badge.fury.io/js/react-redux-connectme.svg)](https://badge.fury.io/js/react-redux-connectme)

## How to use

`
npm install react-redux-connectme --save
`

In your react index file
```javascript
import * as actionsCreators from './actions/actionCreators'
import { addActionCreators } from 'react-redux-connectme'

addActionCreators(actionsCreators)
```

And in all you components that use redux state
```javascript
import connect from 'react-redux-connectme'

class App extends Component {

render() {
return (


{this.props.someData}

)
}
}

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

```