From 4a8d8c7cb38d76476ae3e478e66d452988cc04d8 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Thu, 4 May 2017 15:38:24 -0400 Subject: [PATCH] basic --- js/index.js | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index e7dcc9b..51a814d 100644 --- a/js/index.js +++ b/js/index.js @@ -1,7 +1,37 @@ import React from 'react'; import ReactDOM from 'react-dom'; +import { + BrowserRouter as Router, + Route, + Link +} from 'react-router-dom' + +class About extends React.Component{ + render(){ + return

About

+ } +} + +class Topics extends React.Component{ + render(){ + return

Topics

+ } +} ReactDOM.render( -

Matt is amazing

, + +
+
    +
  • + About +
  • +
  • + Topics +
  • +
+ + +
+
, document.querySelector('main') );