Skip to content

Instantly share code, notes, and snippets.


Aman Khalid amnox

Block or report user

Report or block amnox

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
amnox / injectReducer.js
Created Mar 25, 2019
A demo implementation of Reducer Injection is React
View injectReducer.js
import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import invariant from 'invariant';
import isEmpty from 'lodash/isEmpty';
import isFunction from 'lodash/isFunction';
import isString from 'lodash/isString';
import checkStore from './checkStore';
import createReducer from '../reducers';
import conformsTo from 'lodash/conformsTo';
You can’t perform that action at this time.