先從Slice開始介紹,createSlice是redux toolkit提供的方法,它可以在同一個方法中定義state、action、跟reducer,並根據定義產出reducer跟action creators。
確定! 回上一頁