Skip to content

clayrisser/redux-context-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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