Skip to main content

Posts

Featured

CST438 - Module 2

What did I learn in the second week of CST438?   This is the second week and this time we went over a lab building a settings page. It was built using prior .jsx files to construct the Settings.jsx, while wiring up controlled inputs and buttons to properly talk to the Spring backend from the browser. The pattern used most throughout the Settings.jsx was useState paired with the value and onChange on every input. Essentially, React cannot read the DOM directly without certain pieces of code being wired beforehand, as the input's value is whatever the state variable was last set to, which is then updatable through the onChange handler pushing whatever was typed within that field being shown. Basically, the save handler compared the current name state to the initial name loaded from sessionStorage and only updates when the field is changed within the payload. Furthermore, I also learned routing with react-router-dom, which was pretty interesting given how dropping the route and then t...

Latest Posts

CST438 - Module 1

CST383 - Module 8

CST383 - Module 7

CST383 - Module 6

CST383 - Module 5

CST383 - Module 4

CST383 - Module 3

CST383 - Module 2

CST383 - Module 1

CST-426S - Module 8