DEV Community

Cover image for Write SOLID React Hooks

Write SOLID React Hooks

Dennis Persson on June 02, 2024

SOLID is one of the more commonly used design patterns. It's commonly used in many languages and frameworks, and there are some articles out there ...
Collapse
 
perssondennis profile image
Dennis Persson

Please let me know if you like this kind of content :)

Collapse
 
jendoodle profile image
Jen Lewis • Edited

I'm learning React and this was very helpful! I really like that you added the "why you should do this" in there.

Collapse
 
brense profile image
Rense Bakker

Yes this is great, I just hope that enough people read this and understand it. You did a good job explaining, but I fear that a lot of developers lately are more driven by opinions, than actually learning how to properly write code. :( but maybe I'm being too pessimistic :P anyways, great post! 👍

Collapse
 
perssondennis profile image
Dennis Persson

Glad you appreciated what you read :)

I'm afraid you are right as well. Even if people read this they might forget about it soon and never follow it. Especially when they in practice often are payed for closing Jiras quicky, as that is what is most visible work.

What they forget about though, apart from technical debt and bugs, is that learning is what makes you grow and what makes work interesting.

Collapse
 
allanbonadio profile image
Allan Bonadio

I've been programming for so long, a lot of principles like these I've learned myself, sometimes by reading, sometimes the hard way. Before I ever heard of their names. Or, often, the same principle gets reinvented or renamed from one decade to the next. So I go into interviews, they ask me about one or another, and I'm mystified. But, programming, I follow them without thinking, or refactor my code that way if appropriate for the situation, or refactor old code that way.

I guess I just have to memorize the names du jour.

Collapse
 
krishankumarmourya profile image
Krishan Kumar Mourya

Great article!

Collapse
 
mayank_tamrkar profile image
Mayank Tamrkar • Edited

Great , very easy to understand for beginners

Collapse
 
miguelrodriguezp99 profile image
Miguel

beautiful

Collapse
 
stanleyugwu profile image
Stanley Ugwu

Great article!

Collapse
 
aserrano1971 profile image
Antonio

Great article!
Every react developer should read this.

Collapse
 
martinbaun profile image
Martin Baun

Very well compiled. Kudos!

Collapse
 
teja_bitra profile image
Balachandra

This is wonderful. Thank you

Collapse
 
alejandro_alicontrerasd profile image
Alejandro Ali Contreras Díaz

Very useful

Collapse
 
linh_l_e951d6b0146f7d3e9 profile image
Linh Lê

lovely