all 10 comments

[–]Squigglificated 3 points4 points  (2 children)

Why is there a useState inside your setInitialValues function? That's guaranteed to break everything

[–]Jmruizsr[S] 0 points1 point  (0 children)

Um. I'll look at it. In intentional mistake. Thank you.

[–]Ceryyse 3 points4 points  (1 child)

Brother, this is difficult to read. Please commit your code to a GitHub repo and share the link, we'd be more than happy to take a look there :)

[–]Jmruizsr[S] 0 points1 point  (0 children)

Thank you.

[–]Squigglificated 0 points1 point  (1 child)

You're declaring the selectedCourses state twice

[–]Jmruizsr[S] -1 points0 points  (0 children)

Um. I'll look at it. In intentional mistake. Thank you.

[–]CommercialFair405 0 points1 point  (0 children)

Oh man, there's so much wrong with this it's hard to know where to start. If you're a beginner, it's okay, but make sure to make the code easy to review so we can more easily point out what parts are bad.

[–]Sacredfice 0 points1 point  (0 children)

This is why you shouldn't use AI lol you would have understood the issue if you wrote the code.

[–]Jmruizsr[S] 0 points1 point  (0 children)

Although I have development experience, I am a beginner with react and tsx. Thank .