1 min readFeb 7, 2020
T is the type of the data you store in your service. It’s a generic type as it can be anything you want.
The initialState is also up to you. There might be none (for instance: User session is empty as long as nobody is signed in) or there might be some (for instance: A list of countries for a country selection dropdown)