What is the trade off between history push and replace?
<p>I use <a href="https://github.com/mjackson/history" rel="noreferrer">History</a> package to redirect invalid URL to 404 page on my react component.</p>

<p>I use <code>.replace</code> instead of <code>.push</code> simply because I don't want the browser to record any invalid url I have visited.</p>

<p>Have I missed the point here? And is there a trade-off between choosing one or the other for my purpose?</p>

<p>Can someone explain to me? thanks in advance ;)</p>