redux-context-provider

0.1.0 • Public • Published

redux-context-provider

Beerpay Beerpay NPM NPM Drone GitHub stars

💉 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!

Beerpay Beerpay

Package Sidebar

Install

npm i redux-context-provider

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

159 kB

Total Files

7

Last publish

Collaborators

  • codejamninja