Basically, I know what is a reducer: It defines how the current state and action are used in combination to create a new state. I have gone through this lesson and was stuck on figuring out what is
action.type ? What will
Can anyone explain what is the above? Thanks in advance.
PS: From my point of view, I felt like the course didn’t really give you a detailed explanation of what a particular code does which leads to poorly crafted course. Also, there is a spelling mistake which is on Task 2.
'songs/AddSong' should be