[React] Redux toolkit/ Devtools/ Flux 패턴
TodoList 를 Redux toolkit 으로 리팩토링 1. configStore.js const store = configureStore({ reducer: { todos, }, }); 2. modules const todosSlice = createSlice({ name: "todos", initialState, reducers: { addTodo: (state, action) => { return [...state, action.payload]; }, removeTodo: (state, action) => { return state.filter((item) => item.id !== action.payload); }, switchTodo: (state, action) => { return sta..