DEV Community

Eddy Vinck
Eddy Vinck

Posted on

2 1

Do you have any good resources about planning or structuring React apps you would recommend?

I recently finished my first React project, but I feel like it is a little bit messy. You can see the project @ https://infinitenotes.netlify.com/ and the source code here if you like. The project is a notes application with categories that can be nested.

I am currently learning some new things to improve the app like the Context API and patterns like Render Props and Compound Components.

The thing I struggle most with right now is thinking how I could improve the structure of the app and avoid prop drilling. Right now I am doing quite a bit of prop drilling from my into other components all the way to components like .

I'd like to mention that I'm not looking for advice on how to structure my files (I already have a framework for that). I'm looking for some guides on how to plan the architecture of applications.

Here are some things that I am considering right now:

  1. Removing some utility functions from my and just import them when I need them.
  2. Utilizing the Context API to avoid prop drilling
  3. Looking for ways to improve the code with advanced component patterns like Render Props, Compound Components and other patterns.

So, do you have any resources you would recommend?

Thanks!

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay