We will learn how to wait until the item is updated on the server, and then update the corresponding local state.
I am a little confused by the implementation of
return shouldRemove ?
state.filter(id => id !== toggledId) :
in the handleToggle function
is filter referencing filter that was params prop passed by withRouter?
or is it just a method on that is being used on the state object? that you passed as an argument in the handleToggle function?