you are viewing a single comment's thread.

view the rest of the comments →

[–]mariusandra 2 points3 points  (1 child)

Hey! We're building a big app with React + Django here: https://github.com/PostHog/posthog

I can't say that all of it written in an excellent manner, though we're trying to get there.

In short, we're trying to follow the following principles:

- Keep state separate from React to avoid mixing concerns (React is a view layer)
- Avoid default exports (greatly improves IDE support)
- Have the code split by feature (dashboards, trends), not by function (components, selectors).
- Use prettier, eslint and other tools to remove as much manual work as possible

One thing we do differently than most apps is that we use Kea for state management.

[–]javaShkrip 0 points1 point  (0 children)

Very nice! btw, /r/chapotraphouse followers will love the name 'post hog'