🐿️
24

Shoutout to the bug that made me redo my whole project

I spent 3 hours last night trying to figure out why my React app kept crashing, only to realize I forgot a closing bracket in my useState hook. Stared at the code for an hour before I caught it, felt like such a beginner move. Has anyone else had a tiny syntax error waste a ton of their time?
3 comments

Log in to join the discussion

Log In
3 Comments
nora_wells58
the useState closing bracket ALWAYS gets me too. pro tip is to use prettier or eslint autoformat, catches those dumb little errors before u even run it.
4
parkerrodriguez
Saw my buddy lose a whole afternoon to a missing closing bracket once lmao. He just sat there staring at the screen like it personally insulted him.
1
patricia_king23
patricia_king2310d agoMost Upvoted
LMAO @nora_wells58 for real?! I wish I knew that before I went blind staring at code.
3