Too much clutter by requiring Redux just to hide or show a component. This results in every page requiring to import the actions, calling them in componentDidMount, and so on. Introducing Redux would require additional passing of unnecessary parameters.
For components which can hide or show, we either define the visibility in the page, or we generalize into a layout, and components will accept props like showButton (for example).
Too much clutter by requiring Redux just to hide or show a component. This results in every
page
requiring toimport
the actions, calling them incomponentDidMount
, and so on. Introducing Redux would require additional passing of unnecessary parameters.For components which can hide or show, we either define the visibility in the
page
, or we generalize into alayout
, and components will accept props likeshowButton
(for example).