💉 Inject redux into react context
Please ★ this repo if you found it useful ★ ★ ★
- Access redux state from react context
- Access redux actions from react context
- Inject custom react context
- Render updates when redux state changes
- Integrates with all react projects including react native
- Easy and simple unopinionated to integration
npm install --save redux-context-provider
import React, { Component } from 'react';
import ReduxContextProvider from 'redux-context-provider';
import createStore from './createStore';
import actions from './actions';
import Routes from './routes';
export default class App extends Component {
render() {
return (
<ReduxContextProvider store={store} actions={actions}>
<Routes />
</ReduxContextProvider>
);
}
}
Submit an issue
Review the guidelines for contributing
Jam Risser © 2018
Review the changelog
- Jam Risser - Author
A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.
Add some fuel if you'd like to keep me going!