CST 438 - Week 2

     In lab 3 this week, I developed a simple frontend to communicate customer and order data to the Spring Boot backend. To accomplish this, I used the React library to create reusable interface components. This involved building a user interface for certain tasks such as registering customers and updating customer settings. In React, data can be passed to components as props, which is useful for tasks like providing the EditOrder component data to display a customer's order history prior to editing it. This lab also introduced special functions called hooks  to access the React state and features. The useState function accepts a variable’s initial state and returns an array containing the state variable and function to update the state variable. The useEffect function is used to synchronize with an external system, which in this lab, was used to get orders upon refreshing the page.

    This was not my first time using the React library, but this lab provided a helpful refresher on it. The volunteer CST 462 project I worked on used a frontend built with React components, and I initially found it challenging to quickly contribute to the existing codebase. While I accomplished all tasks assigned to me, the duration of the volunteer work was pretty short, so I did not practice enough using the react library to retain everything that I learned long term. The formal instruction from the lecture videos and the slower pace of the classroom environment has been helpful in reinforcing what I have learned, along with the fundamentals that I missed with my initial work with React.

    From what I have seen so far in this lab, 1 advantage of using the React library that I noticed is the reusability of components. For example, the Message component I created can be used across multiple files and components, eliminating the need to create a separate message dialogue for each one. As an application grows in size, I believe that the value in having reusable components would become more noticeable.

    As someone newer to React, I believe a disadvantage of React is its complexity. For a simple web app, I don’t think it would be necessary to create multiple component files or use React hooks to render page content. However, I am confident that with more experience, it would be less challenging for me to naturally implement the React library..


Comments

Popular posts from this blog

CST 370 Week 1

CST 370 Week 4

CST 370 Week 2