Skip to content

Instantly share code, notes, and snippets.

View javidjamae's full-sized avatar

Javid Jamae javidjamae

View GitHub Profile
@javidjamae
javidjamae / lodashify.js
Created September 9, 2017 22:05 — forked from khalilovcmd/lodashify.js
to import lodash into chrome dev tools console
var el = document.createElement('script');
// el.src = "https://raw.githubusercontent.com/lodash/lodash/3.10.1/lodash.min.js";
// el.src = "https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js";
el.src = "//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.15.0/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el)
import {action1, action2} from "myActions";
import {bindActionCreators} from "redux";
const mapDispatchToProps(dispatch) => {
return {
manuallyBoundAction : (...args) => dispatch(action1(...args)),
autoBoundAction : bindActionCreators(action2, dispatch),
multipleActionsTogether : bindActionCreators({action1, action2}, dispatch)
}
};
@javidjamae
javidjamae / README.md
Created October 7, 2017 05:05 — forked from matthieuprat/ README.md
Until operator for Enzyme's shallow wrapper

Usage

import until from 'path/to/until'
import { shallow } from 'enzyme'

const EnhancedFoo = compose(
  connect(...),
  withHandlers(...),
 withContext(...)