Monday, December 3, 2018

ghetto actions in the Redux pattern

Instead of having objects like this, an older approach is to just have magic strings for the actions. Either way they get used in case/switch logic in the reducers to find the right function.

No comments:

Post a Comment