Hello. How can I push my router to previous page (like history.back())
Router.back() -> https://github.com/zeit/next.js/blob/master/lib/router/router.js#L105-L107
It's not documented but it's in the code.
Actually, you could always use window.history.back().
I think we don't need to expose our own API for this.
Most helpful comment
Actually, you could always use
window.history.back().I think we don't need to expose our own API for this.