DEV Community

Discussion on: Fetching data from an api using React/Redux

Collapse
 
patmoore profile image
Patrick Moore

@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.

Collapse
 
michaelcodes profile image
Michael Cowan

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.