Skip to content

Instantly share code, notes, and snippets.

Dariusz Żak darekzak

  • Poland
View GitHub Profile
View react-testing-library--renderWithRedux.md
import rootReducer from '../my-rootreducer-dir';

function renderWithRedux(ui, { initialState, store = createStore(rootReducer, initialState) } = {}, renderFn = render) {
  const obj = {
    ...renderFn(<Provider store={store}>{ui}</Provider>),
    store,
  };
  obj.rerenderWithRedux = (el, nextState) => {
@darekzak
darekzak / introrx.md
Created Jan 26, 2016 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
You can’t perform that action at this time.