Hafid24 / e-commerce-website-using-React-and-Redux

A functioning e-commerce website for phones built using React with Redux.
https://e-commerce-phones.netlify.com
9 stars 5 forks source link

React project structure #2

Open osminosm opened 5 years ago

osminosm commented 5 years ago

It's a convention to separate components by their nature (statefull, stateless), or in other terms (containers, components), this video explains the difference, as well as some advanced types of composing the two,

but in general, the components that are connected to a store, or use states, are statefull class components, and the ones just displaying data, provided as props are stateless functional components.

in addition to that, checkout this interesting way to structure the project, for better maintainability in the future.