r/reactjs • • Feb 26 '22

Discussion What are best React based repos from which I can learn about structuring a React project?

Hi,

I am just going to start a big project in Next.js and Storybook. Before writing the code, I want to make sure that I've a scalable project structure that other developers can also contribute to.

I'm looking for open source projects/tutorials/handbooks/any kind of resource that uses React and has a scalable project structure and I'll draw some inspiration from their concepts.

Please help me in this regard.

Thanks.

230 Upvotes

26 comments sorted by

120

u/noahflk Feb 26 '22

patterns.dev is a great handbook about architecting React apps

2

u/ravgeet Feb 27 '22

Excellent!

5

u/Happy_Ad_5944 Feb 26 '22

thanks a lot!

4

u/Mr_Moldisocks Feb 26 '22

This is great, very clearly explained patterns.

2

u/Nick337Games Feb 26 '22

Thanks for sharing!

0

u/[deleted] Sep 09 '22

[deleted] — view deleted comment

2

u/noahflk Sep 09 '22

An experienced developer will be familiar with most of them.

But that doesn't mean you'd use all of them in React. That's actually my biggest critique with the book. For example, most of the class based patterns are basically irrelevant for React now.

→ More replies (2)

68

u/[deleted] Feb 26 '22

https://github.com/alan2207/bulletproof-react Bulletproof React is awesome check it out. I personally use it as a template totally recommend it!

1

u/ravgeet Feb 27 '22

This is amazingly well structured.

8

u/capitalechoplex Feb 26 '22

I've discovered this repo last week, it's now my official architecture for all my react projects. I've been refactoring my bigger projects to follow this structure. Totally recommend this one!

3

u/rilwis Feb 27 '22

Very clear! Thanks a lot for sharing!

→ More replies (3)

5

u/Charlitos7 Feb 26 '22

Here is one I really like https://github.com/oldboyxx/jira_clone.

It is a little bit more complex than just an architecture showcase, so you can see the impact of the proposed structure in a real project.

4

u/Deyndra Feb 27 '22 edited Feb 27 '22

This is a good blog post (from Dan Abramov) on the best react file structure

https://react-file-structure.surge.sh/

Edit: added blog author

→ More replies (1)

2

u/SQReder Feb 27 '22

https://feature-sliced.design/en/ not concrete repo, but methodology

2

u/emretunanet Feb 27 '22

nice post thanks for sharing