- The data model is the stored information or data that the application uses. It can be stored locally but is usually stared on servers when using web apps. The data model has no functionality, it is only stored information.
- The data model is the information/data the DOM accesses in order to properly display the webpage.
- A framework is a collection of pre-written code that aids developers with routine/monotonous programming and tasks. It's essentially premade software that makes a very common coding task easier to do.
- Libraries and frameworks are similar however a framework has significantly more rules and restrictions. Any part of a libary can be accessed and used by a developer whenever they want. Frameworks are very restricted in their usage. When dealing with a framework; the framework, not the user accesses the library.
- Frameworks have a lot of premade functionality which makes a lot of the tedious and monotonous tasks involved in vanilla Js.
- Using a framework makes the code more organized and easier to read.
- If using React, the UI doesn't have to be completely reconstructed when one small element is added. React takes care of all the functionality to display the one small addition in the background so that the user does not have to write code to redisplay all UI components.
- A component is a Javascript function (class) that takes in optional inputs and outputs a React component.
- Compenents are the building blocks of react. They are classes/functions that handle sections of the webpage.
- JSX allows us to write HTML in Javascript through React.
- Props in React are properties of components used to pass information from one compenent to another.
- The state are the parts of the app that can change. When a new state is set that component state is re-rendered.
- The parent element does almost all of the acting/functioning in React. The child element is used to store some data and notify the parent that something has happenned.