Problem Statement
What does createSlice() automatically generate?
Explanation
createSlice automatically generates action creators and action types that correspond to the reducer functions you define, eliminating the need to write them manually. It takes a slice name, initial state, and an object of reducer functions, and returns a slice object containing the reducer and auto-generated action creators. This dramatically reduces boilerplate and makes the code more maintainable since actions and reducers are defined together.
