/** The current relative URL (pathname + search + hash). */ get locationURL() { const loc = _history.location; return loc.pathname + loc.search + loc.hash; }
history.listen((location, action) => { console.log(`The current URL is ${location.pathname}${location.search}${location.hash}`); console.log(`The last navigation action was ${action}`); });
render (){ const {content} = this.state const location = History.location const next = `${location.pathname}${location.search}${location.hash}` const btnText = this.props.parent ? "Reply" : "Comment" const {loggedIn} = this.props.user.state