diff --git a/src/App.js b/src/App.js index 64e5d61..a49fb4f 100644 --- a/src/App.js +++ b/src/App.js @@ -18,11 +18,16 @@ import { NotFound } from './NotFound'; class App extends Component { + constructor(props) { + super(props); + this.title = 'Nick Pegg'; + } + render() { return (
-
+
@@ -59,8 +64,11 @@ class App extends Component { } componentDidMount() { + document.title = this.title; + // Auto-highlight all
 blocks
     hljs.initHighlightingOnLoad();
+
   }
 }
 
diff --git a/src/Header.js b/src/Header.js
index 3c58311..8294bbe 100644
--- a/src/Header.js
+++ b/src/Header.js
@@ -7,7 +7,7 @@ class Header extends Component {
       
-

nickpegg.com

+

{ this.props.title }