reactatouille
Version:
Reactatouille is a command-line tool to help quickly start and build a new React project, using Redux, Webpack, Gulp (You can add your own tasks, yo!), HMR/Hot Module Reload, Sass (architecture best practices), Jest, Enzyme, popmotion, Redux devtools (bro
19 lines (16 loc) • 328 B
JavaScript
// main/reducer.js
import * as t from './actionTypes'
const initialState = {
appLoadTime: ''
}
export default (state = initialState, action) => {
switch (action.type) {
case t.APP_LOAD_TIME:
return {
...state,
appLoadTime: action.payload.appLoadTime
}
default:
return state
}
}