title: See list of history through react-router props
body: <p>I currently have a button that onClicks to <code>history.goBack</code> but I want it to direct the user to another path if there isn't a previous page (in the case the user visits the page directly by typing in the URL in the URL bar instead of clicking within the site to get there). When I checked out <code>this.props.history</code> there isn't an object containing the history of pages visited or a boolean that tells me if there is a page for <code>history.goBack</code> to work on. How do I check that? Looking at the docs for <a href="https://github.com/mjackson/history" rel="noreferrer">history</a> library, there is suppose to be an <code>entries</code> property but this somehow didn't make it into react-router.</p>