Hey there guys, watching the latest JSM video - https://www.youtube.com/watch?v=dCLhUialKPQ&t=2s&ab_channel=JavaScriptMastery at around 29 minutes he uses const [hasLiked, setHasLiked] = useState(initialState:false) - this bricks the whole code and the solution I found was useState(false) which was recommended. I'm unsure if I did something wrong and wanted some clarification if possible.
Dive straight into React—from basic JSX to advanced hooks—and build a real, modern app in this hands-on crash course!
⭐ Hostinger - https://hostinger.com/mastery10
⭐ Appwrite - https://apwr.dev/JSMJAN2025
🌟 Webstorm - https://jb.gg/GetWebStormFree
⚛️ Ultimate React Course Waitlist - https://resource.jsmastery.pro/react-course-waitlist
🎨 Movi...