Skip to content

Instantly share code, notes, and snippets.

View npdarrington's full-sized avatar

Nathan Darrington npdarrington

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
  3. Comment a link to your forked copy on the original gist

Questions / Readings

  1. What is a "data model", and how does it relate to the DOM in a front-end application?
  • A data model should be the source of truth. Any data that is being update, created or deleted should be first passed through the data model and then displayed on the page. When you have multiple components trying to manipulate data on their own without a source of truth it can be a large balancing act and can get out of control and tedious very quickly. The data model hosts and then shares all of the information that should be displayed to the user, this way it keeps everything in sync and up to date.
  1. What is a "framework?" And how does it differ from a "library?"
  • A framework is give us powerful ways to write code that follows a strict set of rules to use properly. A library is more of an abstraction that helps us write something easier, such as moment.js helping us format and read time in a cleaner format as opposed to having to play with JS Date objects which can be confusing at time.
  1. Why should we conside

DTR: Define the Relationship

Use this template when conducting DTR with your project partners. It's recommended that you copy/paste this template into your own gist each time you conduct a DTR to take notes on the conversation.

Guiding Questions to Define The Relationship:

  1. What are each of our learning goals for this project? What drives us in this project?

Jeff: Solidify gitHub workflow protocol, become more familiar with event handlers.

## Day 2
1. What are the 5 primitive data types we learned about today?
- B.U.N.N.S -> Boolean, Undefined, Number, Null, String
2. How are variables useful and what is an example of one that has a value assigned to it?
- A variable assigns a certain amount of computer memory to store information that can be used now or computer to be used at a later time.
```javascript
var name = Nathan;
```