React/Redux 我可以使用 reverse()

React/Redux can i use reverse()

我从 Redux 开始,

我可以反转我的状态吗:

return {
  ...state,
  articles: [ ...action.payload ].reverse()
};

因为你在 new Array 上做相反的事情,你没有直接改变状态,所以我会说它是 fine