import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';

const stateSlice = createSlice({
  name: 'ghj',
  initialState: {
    num: 1,
  },
  reducers: {
    add: (state) => {
      state.num += 1;
    },
  },
});

export default stateSlice;
