Hi Xavi, I do have the same case as you describe: ThingsListContainer.js
Yiquan Zhou
11

I don’t mean a ListContainer and an ItemComponent. I mean a ListContainer and a ListComponent. The former would take care of the state (items displayed, filtering, adding and removing items, etc.) and render the ListComponent, and this ListComponent would take care only of the presentation of the list and would include the ListItemComponent inside… If you mix the ListContainer and the ListComponent into one single component then fine but if you really want to separate presentation from data management (https://medium.com/@dan_abramov/smart-and-dumb-components-7ca2f9a7c7d0#.dx4gjpieb) then having containers and components folders lacks of conveniency. But I really liked the idea of data domains for file structuring!

Show your support

Clapping shows how much you appreciated Xavi Fuentes’s story.