There was an error while loading. Please reload this page.
This is a wiki page containing a guide about the workshop for newcomers.
The workshop will consist of you trying to solve the bugs that we introduced by design.
The goal is for you to get a better understanding of the workings inside of the project.
Some of the steps of the workshop have hints with the goal of trying to make you better understand of what you need to do.
git clone git@github.com:NIAEFEUP/tts-fe.git
git checkout newcomer-workshop
The desired functionality is the one described in the video.
Hints:
selectedOptions
CoursePicker
You should look at this example, that uses the useSwr hook.
useSwr
You should create a file, for example, named useCourseUnits.tsx where you call the api endpoint which is getCoursesByMajorId(Number(id))
useCourseUnits.tsx
getCoursesByMajorId(Number(id))
This has the goal of understanding how to create a custom hook like it is specified here