import React, { Component } from 'react'; import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom'; import hljs from 'highlight.js'; import 'highlight.js/styles/github-gist.css'; import { Container, Row, Column } from './skeleton'; import { Articles, RoutedArticle } from './Article'; import { Footer } from './Footer'; import { Header } from './Header'; import { NavList, TagNav, HistoryNav } from './Nav'; class App extends Component { render() { return (
{ /* Page routes */ } { /* Article routes */ } { /* 404 fallback */ } { /* Display HistoryNav if this is a series of articles */ }
); } componentDidMount() { // Auto-highlight all
 blocks
    hljs.initHighlightingOnLoad();
  }
}

// Dummy About page just for playing around with ReactRouter
class About extends Component {
  render () {
    return (
      

About me

Wowzers, this is an about page!

) } } class FourOhFour extends Component { render () { return (

404 Oh No!

You're lost, bud. Why not try going back Home?

) } } export default App;