Skip to content

Instantly share code, notes, and snippets.

@hayleyw7
Last active September 7, 2021 16:27
Show Gist options
  • Save hayleyw7/2d9136fd0368ebcf136f7c69f1edd4c5 to your computer and use it in GitHub Desktop.
Save hayleyw7/2d9136fd0368ebcf136f7c69f1edd4c5 to your computer and use it in GitHub Desktop.
Mod 3 Prework

Original Repo

https://github.com/hayleyw7/intermission-assignments/blob/main/prep-for-module-3-frontend.markdown

Instructional Deliverables (Due Last Friday 5pm of Intermission Week)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment