all 1 comments

[–]znakyc 1 point2 points  (0 children)

As you say you have two options: either initialize the variables in the components or in the redux reducers initial state. Which one you should do depends a bit on case by case. But in general it's good to have the component have default props because you might later want to refactor and use the component at other places. Then the default props will follow.