CST 438 - Module 2

 Week 2,

This week's module covers material based on REACT which serves as the front end of the web development framework. While in last week's assignment, we implemented a simple database that can be used updated or changed via typical html requests. However, we would only be able to do this by typing in the URL and parameters, while passing in a body containing JSON. This week allows us to create web pages where a user can interact with input fields, see error messages and make changes to the database, while making the webpage run more efficiently using a virtual DOM (Document Object Model). 

I consider the strength of REACT is the improved efficiency from a normal framework. From what I understand, a DOM is a structure that represents the HTML elements of a webpage, and when changing the DOM, it updates all of the browser rendered elements. However, with the use of the virtual DOM, which is a lightweight version of the real DOM, we can change that first and only have to re-render the parts of the DOM that did change, instead of the whole thing. However, when it comes to manipulating state variables, you would need to call a function to use the state first, then use a setter to change it. I can imagine in a larger project, and something needs to be changed, there will need to be additional changes compared to a simpler framework.

Comments

Popular posts from this blog

CST 311 - Module 3

CST 338 - Module 4

CST 370 - Module 3