Fractal — A react app structure for infinite scale
Shivek Khurana

This is something I’ve struggled with naming, because I like “modules” for collections of related code (like Symfony bundles, for example). To me, modules might contain everything else you’ve mentioned (components, pages, utils, “ducks”). I also don’t like the name “ducks” though and would love to with something else… maybe “state” would be a good option I suppose.


On some larger projects I also like the component / container distinction, but still like to keep “pages” separate.

This is a nice structure though, thanks for sharing it.

Like what you read? Give Elliot Wright a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.