Skip to content

Instantly share code, notes, and snippets.

View janitastic's full-sized avatar

Jani Palomino janitastic

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.

Questions / Readings

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:

Checklist/Rubric

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

  • I named my directories correctly.
  • I named my files correctly.
  • I structured my files and directories correctly.
  • I made only one initial commit.
  • I pushed my initial commit to GitHub.
@janitastic
janitastic / git-collaborative-workflow.md
Created February 7, 2021 21:10 — forked from adamloving/git-collaborative-workflow.md
Simple Git workflow for collaborating on a project. I wrote this to help a co-worker learn Git (and help me remember after a year of working on my own).

Creating the change

$ git checkout -b my-feature

... modify code ....

$ git add <filename> 
$ git commit -m “my feature is this”