1. Redux와 Redux-toolkit 비교

  1. store.js 수정

  2. reducers/index.js

  3. reducers/postSlice.js 수정

    extraReducers: {
        [logIn.pending](state, action) {
            state.isLoggingIn = true;
        },
        [logIn.fullfilled](state, action) {
            state.data = action.payload;
            state.isLoggingIn = false;
        },
        [logIn.rejected](state, action) {
            state.data = null;
            state.isLoggingIn = false;
        },
    },
    
  4. reducers/user.js 수정

  5. action/user.js 수정

  6. App.js 수정