react-scripts-ts-tw
Version:
Configuration and scripts for Create React App.
15 lines (11 loc) • 342 B
text/typescript
import * as D from '../../definitions';
import * as Redux from 'redux';
const initialState: D.AppState = {
loading: false,
logined: false,
};
const appReducer: Redux.Reducer<D.AppState> = (state: D.AppState, action: Redux.Action): D.AppState => {
state = state || initialState;
return state;
};
export default appReducer;