0.1.0 • Published 6 years ago

redux-context-provider v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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 :coffee: :coffee: :coffee: was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Beerpay Beerpay