8
3 Comments

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

submitted this link to Icon for group React
React
on August 15, 2021
  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
30 free marketing tools that you probably heard of but haven't tried User Avatar 26 comments How would you grow this? User Avatar 26 comments I curated a directory of Free tools and resources User Avatar 24 comments How much revenue can an unknown open-source project make? User Avatar 19 comments Upselling from $8/mo to $1947/mo User Avatar 15 comments 3 Untapped Niche for SEO focused SAAS User Avatar 15 comments