useState Hook
Review, Research, and Discussion
-
How does React differ from vanilla JS/HTML/CSS?
- React is a UI component library using JSX(combination of JS and HTML)
-
What is the primary difference between a function component and a class component?
- a functional component is just a plain JavaScript function that returns JSX, but a class component is a JavaScrip class that extends React
Document the following Vocabulary Terms
-
Functional Components: are basic JavaScript functions. These are typically arrow functions but can also be created with the regular function keyword.
-
Children / Child Components: Children allow you to pass components as data to other components.