Skip to content

Instantly share code, notes, and snippets.

View herbowicz's full-sized avatar
🏠
Working from home

Greg Herbowicz herbowicz

🏠
Working from home
View GitHub Profile
@herbowicz
herbowicz / saga.js
Created March 13, 2018 17:06
redux-thunk vs. redux-saga
import { call, put, takeEvery } from 'redux-saga/effects';
import {
API_BUTTON_CLICK,
API_BUTTON_CLICK_SUCCESS,
API_BUTTON_CLICK_ERROR,
} from './actions/consts';
import { getDataFromAPI } from './api';
export function* apiSideEffect(action) {
@herbowicz
herbowicz / Bar.js
Created February 22, 2018 22:50
Jest and Enzyme - shallow rendering
import React from 'react';
const Bar = (props) => (
<div className="bar">
This is Bar
</div>
);
export default Bar;
@herbowicz
herbowicz / Bar.js
Created February 22, 2018 22:26
Jest and Enzyme - shallow rendering
import React from 'react';
const Bar = (props) => (
<div className="hi">
This is Bar
</div>
);
export default Bar;
@herbowicz
herbowicz / fidget-spinner-in-css.markdown
Created December 18, 2017 12:59
Fidget spinner in CSS