const reduxSinaxe = (state = [], action) => { switch (action.type) { case "@smthg/ACTION": const { anyConst } = action; return [...state, anyConst]; default: return state; } }; export default reduxSinaxe;