Skip to content

Instantly share code, notes, and snippets.

@fredrivett
fredrivett / AppSimple.tsx
Created July 5, 2019 16:13
Authenticated Routing with React, React Router, Hooks, Redux & TypeScript
import * as React from "react";
import { Route, Router } from "react-router-dom";
import history from "./history";
import Nav from "./components/Nav";
import Pages from "./routes/Pages";
const App = () => (
<div className="App">
<Router history={history}>
@fredrivett
fredrivett / Styleguide
Created June 25, 2015 16:03
Styleguide
# Contents
* Introduction
* Syntax
* 80 Characters Wide
* Anatomy of a Ruleset
* Multi-line CSS
* Indenting
* Meaningful Whitespace
* Commenting