https://github.com/qeepsake/use-redux-effect
A powerful React hook that subscribes to Redux store events.
https://github.com/qeepsake/use-redux-effect
Last synced: over 1 year ago
JSON representation
A powerful React hook that subscribes to Redux store events.
- Host: GitHub
- URL: https://github.com/qeepsake/use-redux-effect
- Owner: Qeepsake
- Created: 2020-09-05T05:40:26.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T13:35:14.000Z (about 5 years ago)
- Last Synced: 2025-04-20T16:47:00.998Z (over 1 year ago)
- Language: TypeScript
- Size: 636 KB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# use-redux-effect
[](#contributors-)
> A powerful React hook that subscribes to Redux store events
[](https://www.npmjs.com/package/use-redux-effect) [](https://standardjs.com)
## Install
```bash
npm install --save use-redux-effect
```
## Usage
First, add the hook and set it up to execute the desired logic
```jsx
import {Text} from 'react-native'
import { useReduxEffect } from 'use-redux-effect'
const ExampleClass = (props) => {
useReduxEffect((exampleEffect) => {
// Execute code
}, eventType, [props]);
return This is an example Component
}
```
Next, add the reducer that recieves the action to your Redux store :
```jsx
import {actionReducer} from 'use-redux-effect'
const reducers = {
action : actionReducer
}
// Proceed to add into the Redux store of your application
```
## License
MIT © [lukebrandonfarrell](https://github.com/lukebrandonfarrell)
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Luke Brandon Farrell
📆 💻

Amogh Jahagirdar
💻 📖
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!