I started working on this react app a while ago and it was working fine and then I wanted to push it online with GitHub pages and I followed everything they said in a YouTube video but it didn't work so I started a new react app and pasted my old app in it but now when I do nom start I get a blank page and when I do inspect I get this error error image here
I am using hooks in two files and it was working before and now I don't know why its not working anymore.
first hooks pic second hooks pic
and this is my app.js app.js pic
does anyone know how to fix it?