@michael
-- because you want the product list to be a shared state.
For example, the product list is useful in a listing component - but it also might be useful in a checkout component that is validating that the product is still available.
Okay thanks. I'm just trying to understand what you guys take into consideration doing things this way.
I've never worked with any form of state management before trying out react. So the differences are confusing to me compared to my previous vanilla js frontends.
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.
@michael -- because you want the product list to be a shared state.
For example, the product list is useful in a listing component - but it also might be useful in a checkout component that is validating that the product is still available.
Okay thanks. I'm just trying to understand what you guys take into consideration doing things this way.
I've never worked with any form of state management before trying out react. So the differences are confusing to me compared to my previous vanilla js frontends.