In Redux Toolkit, createSlice() automatically creates action creators for every reducer you define. Each reducer name becomes an action creator function that can be used to dispatch actions easily.
Each function inside the reducers object represents an action.
createSlice() automatically generates action types using the slice name and reducer name (e.g., 'counter/increment').
You can access these action creators from slice.actions and use them with dispatch().