My first React project broke because I used a class component instead of a function
I started learning React about 3 months ago by following this old tutorial that taught everything with class components. I built this whole little to-do app, like 400 lines of code, and it worked fine on my computer. But when I pushed it to GitHub and tried to share it with someone, they couldn't get it to run at all. Turns out the tutorial was from 2019 and used an old version of React that doesn't work with newer setups. I had to rewrite the entire thing as function components with hooks. It took me like 2 full evenings and I was so frustrated. But honestly, I learned way more about how React actually works by fixing it myself than I ever did following that outdated tutorial. Has anyone else gotten stuck following an old tutorial and had to backtrack like that?