Create a GitHub gist to answer these questions in as much detail as possible. Imagine someone is asking these questions in an interview (these are popular interview questions).
-
What is a "data model", and how does it relate to the DOM in a front-end application?
-
organizes data and standardizes how different data relates with which each
-
what you use to update the DOM
-
-
What is a "framework?" And how does it differ from a "library?"
-
A framework provides you with a skeleton with its own defined features for you to build on.
-
library - you are in control (you call library)
-
framework - control is inverted (framework calls you)
-
-
Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?
- more efficient, quicker, less repetitive
-
What is a "component" in React? Why is it useful to have components?
-
a core "building block" of React
-
make it easier to build UIs, because you can break it in child components to work on independently, and then merge them all in parent component (for the final UI)
-
-
What is JSX?
- a JS version of HTML that's static & object-oriented
-
What are React "props?"
- outside properties passed into component that influence the render, like a function parameter
-
What is React "state?"
- inside-controlled & managed state of component that influence the render, like a function variable
-
What does "data down, actions up" mean in React?
-
data down - pass data/functions from parent --> child components (via props)
-
action up - pass data from child --> parent component (via action/event)
-
Before the due date, send a link to your gist in a DM to both of your instructors.