Actions describe what happened and give Redux the information it needs to update your state.
An action is a description of something that happened in your application. For example, clicking an Add to Cart button might dispatch an action that tells Redux which product should be added. The reducer then uses that action to decide how the state should change.
Redux Toolkit makes actions easier to work with because createSlice automatically generates action creators from your reducers. Instead of manually creating action types and action creator functions, you can simply dispatch the generated action with the data your reducer needs.
What you'll walk away knowing