Week 2 - CST 438
This week we learned about React components such as useState, useEffect, useContext and Props. These components are javascript functions that help build the layout of a page. useState is important because it helps store data and update pages when the data changes. useEffect helps run code that retrieves information from the server when a page loads. useContext helps to share data between components.
One of the pros of React is that components can be used in many instances which makes it easier to manage projects. It also makes it easier to implement multiple pages into a single application. A weakness I found is that small mistakes can cause webpages to no load properly. For example, a JSX file that had a variable that was undefined would cause the whole application to not load and it had to be fixed before being able to see the other parts which were coded correctly.
Comments
Post a Comment