Discuss in words something you learned in class today or this week.
— Today in class we learned the differences in why we use class based components and functional components. Class based components are used to set the stat of a component which is where most if not all functional components will be extended from. It’s a strategic approach to creating reusable components and having an organized way of calling upon the setState within the children components.
Why/when would you use a class-based component vs a functional component?
What is create-react-app?
— Create React App is a tool built by developers at Facebook to help you build React applications. It saves you from time-consuming setup and configuration. You simply run one command and create react app sets up the tools you need to start your React project.
What are the differences between a class component and a functional component?
— To sum it up, the difference between functional and class-based components is. Functional component can’t have state or lifecycle methods; A class-based component can maintain its own state. Class-based components can have lifecycle methods which can be used to perform various actions at specific points of the component lifecycle.
What is JSX?
How does React work?
How does the virtual DOM work in React?
— In React world, the term “virtual DOM” is usually associated with React elements since they are the objects representing the user interface. React, however, also uses internal objects called “fibers” to hold additional information about the component tree. They may also be considered a part of “virtual DOM” implementation in React.
Which (if there is) node library method could you use to solve the algorithm problem you solved last night in your pre-homework?
What’s the difference between an element and a component in React?
— In React, this is where the elements come to rescue. An element is a plain object describing a component instance or DOM node and its desired properties. It contains only information about the component type (for example, a Button), its properties (for example, its color), and any child elements inside it. An element is not an actual instance.