📌  相关文章
📜  redux 工具包如何设置空初始状态 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:13.345000             🧑  作者: Mango

代码示例1
const intialState = {
  returned: []
}

const showOnReviewSlice = createSlice({
    name: 'showOnReview',
    initialState,
    reducers: {
        reset: state => initialState
    }
});