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

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.

Awesome Lists containing this project

README

          

# use-redux-effect

[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)

> A powerful React hook that subscribes to Redux store events

[![NPM](https://img.shields.io/npm/v/use-redux-effect.svg)](https://www.npmjs.com/package/use-redux-effect) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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!