You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
266 B

const initialState = {
villes: [],
}
export default appReducer = (state = initialState, action) => {
switch (action.type) {
case FETCH_VILLE:
// @ts-ignore
return {...state, villes: action.payload};
default:
return state;
}
}