Skip to content

Instantly share code, notes, and snippets.

View katemalone's full-sized avatar

Kate Malone katemalone

View GitHub Profile
@katemalone
katemalone / basic_router.jsx
Created October 26, 2019 17:09 — forked from siakaramalegos/basic_router.jsx
Basic example of React Router: BrowserRouter, Link, Route, and Switch
// BrowserRouter is the router implementation for HTML5 browsers (vs Native).
// Link is your replacement for anchor tags.
// Route is the conditionally shown component based on matching a path to a URL.
// Switch returns only the first matching route rather than all matching routes.
import {
BrowserRouter as Router,
Link,
Route,
Switch,
} from 'react-router-dom';

Exam Checklist

Mid-Mod Notes

Time: 3 hrs

  • Spec like IdeaBox
  • Build out an app from a boilerplate / work through iterations
  • Dependencies installed
  • 2 repos (1 FE and 1 BE)
  • Bring in data from an API

Session 4 Practice Tasks

The assignments listed here should take you between 1.5 and 2 total hours.

To start this assignment:

  1. Click the button in the upper right-hand corner that says Fork. This is now your copy of the document.
  2. Click the Edit button when you're ready to start adding your answers.
  3. To save your work, click the green button in the bottom right-hand corner. You can always come back and re-edit your gist.