R
1

Saw a massive difference in my React code after 3 months of practice

Started learning React back in February. My first project was a mess of nested callbacks and broken state. After 3 months and about 40 hours of tutorials plus a small app for my buddy's coffee shop, I can actually read my own code now. The big change was understanding hooks properly. Anyone else hit a point where it just clicked for them?
2 comments

Log in to join the discussion

Log In
2 Comments
caseyl18
caseyl188d ago
Oh man, the "hooks clicking" thing is SO real. I had the exact same moment when I finally wrapped my head around useEffect dependencies. My first few projects had state bugs that made zero sense and I was just throwing useEffect calls everywhere hoping something would work. Once I got why you need to list the variables that actually change, it was like a light bulb went off and suddenly my code stopped being a nightmare to debug.
0
bennett.claire
That moment when the dependency array finally makes sense is seriously life changing. I remember staring at my screen wondering why my component kept re-rendering in an endless loop and it just felt like the framework was out to get me personally. Once someone explained it like, hey, the array is basically your way of telling React what to watch, everything just clicked into place. Now I actually enjoy debugging those issues instead of dreading them. It's wild how something so small can make or break your whole app.
3