UNPKG

generator-thundr-gae-react

Version:

Yeoman generator for a React app that runs atop Thundr on Google App Engine

17 lines (14 loc) 310 B
const initialState = {}; export default (state = initialState, action) => { switch (action.type) { case 'OPEN_DRAWER': return { name: action.name, }; case 'CLOSE_DRAWER': return {}; default: return state; } }; export const getOpenDrawer = state => state.name;