from redux to ngrx

My Notebook: Redux & NGRX

State: So, what do you think of the following simple app? If I tell you to represent the current state of the app in form of a simple javascript object, how would you approach? I can only think of two different ways, let initialState = { counter: 0, greeting: 'Hi there!' } Or, let initialState = { state: { counter: 0, greeting: 'Hi there!' } } However, I would prefer the first one since they (counter and greeting) don't relate to each other. If they were instead firstName and lastName, I would have extracted them in…

Keep reading