redux-context-provider

💉 Inject redux into react context

MIT License

Stars
4
Committers
2

redux-context-provider

💉 Inject redux into react context

Please ★ this repo if you found it useful ★ ★ ★

Features

  • 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

Installation

npm install --save redux-context-provider

Dependencies

Usage

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>
    );
  }
}

Support

Submit an issue

Contributing

Review the guidelines for contributing

License

MIT License

Jam Risser © 2018

Changelog

Review the changelog

Credits

Support on Beerpay (actually, I drink coffee)

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!

Badges
Extracted from project README
Beerpay Beerpay NPM NPM Drone GitHub stars Beerpay Beerpay
Related Projects