8
3 Comments

React Class Components vs Functional Components with Hooks: A Never Ending Story

  1. 2

    Thanks for sharing this. I am a Backend dev that is sometimes tasked with doing FE work... this really helped me answer a question I didn't realize I had.

    1. 1

      That's awesome! Can you please tell me more? What question did it help you to answer?

      1. 1

        Specifically, the closure problem helps. I actually just converted a functional component back to a class component because of a "bug" caused by us not using useRef. Guess I can switch it back now. Lol

Trending on Indie Hackers
Passed $7k 💵 in a month with my boring directory of job boards 39 comments Reaching $100k MRR Organically in 12 months 32 comments 87.7% of entrepreneurs struggle with at least one mental health issue 14 comments How to Secure #1 on Product Hunt: DO’s and DON'Ts / Experience from PitchBob – AI Pitch Deck Generator & Founders Co-Pilot 11 comments Competing with a substitute? 📌 Here are 4 ad examples you can use [from TOP to BOTTOM of funnel] 10 comments Are you wondering how to gain subscribers to a founder's X account from scratch? 9 comments