DEV Community

Carlos Galarza
Carlos Galarza

Posted on

5 1

Are you using Redux or thinking about using it?

react.js logo

Are you using Redux or thinking about using it? YOU DO NOT need it! React is a complete library to control the state of our applications. Using React Context in combination with Local State in your components is more than enough. Simplify the management of the state in your project and save valuable bytes 💰. How? Use useContext and useState, I recommend this great article by Kent C. Dodds, comes with examples and a deep explanation of this pattern that I use in all my projects and is very powerful: Application State Management with React. If you have any questions, feel free to ask.

Follow me on Twitter @carloslfu if you want to learn more about React, programming, and technology.

Good luck!

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (1)

Collapse
 
giovannimazzuoccolo profile image
Giovanni Mazzuoccolo • Edited

It depends. When the application grows you need something more than useContext and useState. I think it is fine for settings like “night mode” or values that don’t changes often.

Also, redux offers time travel debugging, redux DEV tools, also it’s quite nice and it easier to test and maintain.

At the end it’s a choice to take into account when your app becomes more complex and complex :)

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

👋 Kindness is contagious

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

Okay