import React from "react" import ReactDOM from "react-dom" import createHistory from 'history/createBrowserHistory'; const history = createHistory(); import Navigation from "./components/Navigation" import Discover from "./components/Discover" import Post from "./components/Post" class App extends React.Component { constructor(props) { super(props) this.navigate = this.navigate.bind(this); this.state = { location: history.location } } render() { return (