1const reduxSinaxe = (state = [], action) => {
2 switch (action.type) {
3 case "@smthg/ACTION":
4 const { anyConst } = action;
5 return [...state, anyConst];
6
7 default:
8 return state;
9 }
10};
11
12export default reduxSinaxe;