CST438 Learning Journal 5
This week I learned how to build and test React components that interact with a backend REST API while following an existing project structure. I implemented the instructor features for managing assignments, including viewing, adding, editing, and deleting assignments, and learned how to use React hooks such as useState , useEffect , useCallback , and useRef to manage component state, fetch data, and control dialog windows. I also worked with asynchronous API requests using fetch , handled server responses and error messages, and refreshed the UI after successful operations. I also implemented the instructor grading interface, which involved retrieving grade data from the backend, displaying it in an editable table, validating user input, and sending updates back to the server. Although I could not fully test the grading workflow because the student enrollment frontend was still being developed by a teammate, I verified that the frontend communicated correctly with the backend and ha...