I think you can have state relatively close to its usage (page container) while remaining flexible to make layout changes
True! Depending on who you ask, however, "page container" might not be considered "close to its usage". My concern is primarily about sprinkling state around individual components inside the page component tree.
Otherwise I completely agree - keeping state at the top level is conceptually similar to using a state container in that it achieves the same purpose.
“page container” might not be considered “close to its usage”
True in traditional data by props based components, but not when you adopt components by props and children;
See my response at dev.to/patroza/comment/bcnf
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
True! Depending on who you ask, however, "page container" might not be considered "close to its usage". My concern is primarily about sprinkling state around individual components inside the page component tree.
Otherwise I completely agree - keeping state at the top level is conceptually similar to using a state container in that it achieves the same purpose.
True in traditional data by props based components, but not when you adopt components by props and children;
See my response at dev.to/patroza/comment/bcnf