Skip to content

Instantly share code, notes, and snippets.

View Samantha-Stevens's full-sized avatar

Samantha Stevens Samantha-Stevens

  • DC Metro Area
View GitHub Profile

React Router Prework

This gist contains a short assignment I'd like everyone to complete before our formal lesson. The prework involves reading some of the React Router documentation, and will allow us to keep the lesson more hands on.

Instructions

  1. Fork this gist
  2. On your own copy, go through the listed readings and answer associated questions

You will not be turning this in; it's for your own understanding/learning/benefit 😁

What is a "data model", and how does it relate to the DOM in a front-end application?
- The data model is our single source of truth for what will be (should be) displayed on the page. It holds onto the state of our app and is the data that you use to update the DOM.
What is a "framework?" And how does it differ from a "library?"
- A framework is a collection of functions but it provides structure (like a skeleton) to your project so you must follow the stucture closely to use one.
The framework calls on your code which is the opposite of a library where you call it as you want to use it.
Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?

Checklist/Rubric

To make a copy of this rubric:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.

Part I: Creating Directories and Files; Initializing Git and Pushing to GitHub

  • I named my directories correctly.