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 In3 Comments
nora_wells5810d ago
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
parkerrodriguez10d ago
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
3