Skip to content

Instantly share code, notes, and snippets.

View eXon's full-sized avatar

Benoit Tremblay eXon

View GitHub Profile
@eXon
eXon / createReducer.js
Last active May 12, 2017 19:50 — forked from alexbrillant/reducer.js
Alex - reducer.js
export default function createReducer(initialState, actions) {
return function reducer(state = initialState, action) {
const actionReducer = actions[action.type];
if (!actionReducer) {
return state;
}
return actionReducer(state, action);
};
}
@eXon
eXon / ieReset.inline.less
Last active April 29, 2017 16:57
CSS complete reset
// This is a different extension so we don't include it within our style.css when extracting CSS, instead we require it only if the browser is IE/edge
:global {
body {
background: red;
}
#RestoNGo-App, #RestoNGo-App * {
align-content: normal;
align-items: normal;
align-self: normal;