Sign in
Log inSign up
Rishi Bakshi

21 comments

Rajni Rethesh
Rajni Rethesh
Nov 19, 2024

Will definitely share this with my dev team. You have explained it thoroughly. Keep up the good work!

10
·
·3 replies
Rishi Bakshi
Rishi Bakshi
Author
·Nov 19, 2024

Thankyou so much for reading my article so glad you liked it!!

·
Rajni Rethesh
Rajni Rethesh
Nov 19, 2024

Sure. Do check my stuff as well and let me know your thoughts on it. :) Rishi Bakshi

·
Rishi Bakshi
Rishi Bakshi
Author
·Nov 21, 2024

Yes yes sure!! :)

·
Damien
Damien
Sep 8, 2024

You've managed to make your point and your code clear, clean and easily understandable. Thanks!

6
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 8, 2024

Thankyou so much!! ❤️

1
·
Debajoti Chakraborty
Debajoti Chakraborty
Sep 8, 2024

This clearly explains how to maintain a good codebase for future reusability... Absolutely great job!✌

6
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 8, 2024

Thankyou so much!! ❤️

·
Matthew Delmarter
Matthew Delmarter
Sep 5, 2024

Nice clear explanation and examples 👍

4
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 5, 2024

Thankyou so much!! ❤️

11
·
Franklin Ohaegbulam
Franklin Ohaegbulam
Sep 5, 2024

This is a fantastic read! I highly recommend this technique for developers.

3
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 6, 2024

Thankyou so much!! ❤️

·
Favourite Jome
Favourite Jome
Sep 7, 2024

Thanks for sharing!

3
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 8, 2024

Thankyou for reading!! ❤️

·
Quang Dang
Quang Dang
Sep 8, 2024

nice article

3
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 8, 2024

Thankyou so much!! ❤️

·
José Silva
José Silva
Sep 13, 2024

Very understable and util. Thanks.

3
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Sep 14, 2024

Thankyou so much!! ❤️

·
Issy
Issy
Nov 6, 2024

I really enjoy your analyses! Recently,EchoAPI has become an essential part of my React development toolkit, enhancing collaboration and efficiency.

2
·
·1 reply
Rishi Bakshi
Rishi Bakshi
Author
·Nov 7, 2024

That's great to hear! Thankyou for reading my article and glad it helped you :)

·
Soothfy App
Soothfy App
Nov 9, 2024

The Single Responsibility Principle (SRP) in React ensures that each component has one reason to change, promoting modular, maintainable, and understandable code. An "All-in-One Component" violates SRP by combining state management, API fetching, and rendering logic within a single component, leading to reusability issues.

To adhere to SRP, refactor by creating a custom hook (useFetchPosts) for fetching data, a PostCard component for rendering individual posts, and a PostList component to map and display those posts. The main component (PostPage) can now focus solely on data handling and rendering, enhancing separation of concerns, reusability, testability, and scalability.

·