Skip to content

Instantly share code, notes, and snippets.

Rancid Tomatillos

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url]


React Router Prework

Router Overview

React Router is a library that allows us to make our single page React applications mimic the behavior of multipage apps. It provides the ability to use browser history, allowing users to navigate with forward / back buttons and bookmark links to specific views of the app. Most modern sites use some form of routing. React Router exposes this functionality through a series of components. Let's start by looking at the overall structure of an app using router:

1. Take a look at the quick start page of the React Router docs. Take note of the syntax and organization of the page. No worries if this looks unclear right now! (nothing to answer here)

2. What package do we need to install to use React Router?

React Router DOM

Mod 3 Pre-work

Interview Questions

What is a "data model", and how does it relate to the DOM in a front-end application?

A data model is a diagram of data the application or system will use, and how it will flow. It includes a representation of the relationship between elements as well as include entity types, attributes, relationships, integrity rules, and the definitions of those objects.

What is a "framework?" And how does it differ from a "library?"

A framework is going to typically have rules associated with it. A library will also have some rules but with more flexability. They are both going to contain pre-written functionality. When you call to a peice of code then it means you are calling to a library. When code calls to you (your code) then it is framework.

Why should we consider using a framework over vanilla JS like you have been doing in mods 1 and 2?

Career Development Capstone:

What is your greatest strength and how do you know?

I believe that one of my greatest strengths is being able to be fair and diplomatic with people. This was supported in the results of my Pairin survey as well.

I am a very sensitive person, which gives me the ability to be sympathetic with others. I also know how to listen, take in and consider what everyone is wanting, not just what I want. I know this is a strength I have because I've been asked by my friends and family to be a voice of reason, when they need advice.

How do you work best?

I work best when I work on my own, I tend to be a very independent person. I grew up in an environment where being being self-sufficient was expected. As an adult I have often had to get use to asking for help from others, because I don't want to inconvenience other people. Being independent has enabled me accomplish a lot on my own, but has maybe also prevented me from doing better with the support of other. I want to be able t