Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/richie-south/react-redux-connectme
- Owner: richie-south
- Created: 2017-02-09T12:09:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-13T09:39:51.000Z (almost 8 years ago)
- Last Synced: 2024-11-06T07:47:53.372Z (11 days ago)
- Topics: npm, react, redux
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-redux-connectme
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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,
}))```