How to better organize your React applications?

Click for: original source

Alexis Mangin deep dive on a good architecture for very large web applications in React. if you didn’t start with a good architecture, it can become difficult to keep your code organized.

Author spent time comparing solutions from Nathanael Beisieg and others but decided to go with his own approach. He also compares common boilerplate projects on GitHub. They often organize all the files by type, but many of them do not account for application grows; and it often becomes difficult to maintain it later.

He takes liking in Ember and it’s ability to structure your project by features, instead of by type. Author decided to group all related features together, and nest them as needed. Recommended way is to create services to manage all api requests.

Code with examples in ReactJS provided. Excellent article!

[Read More]

Tags programming javascript react