Gatsby: Access to history (to createa a back button) in createPage?

Created on 21 Nov 2018  路  1Comment  路  Source: gatsbyjs/gatsby

I am trying to create a back button in a plugin created page. (A page made with createPage)

Not sure how to access the history prop and make a back button though.. ):

question or discussion

Most helpful comment

You should be able to use default browser window.history.back()

>All comments

You should be able to use default browser window.history.back()

Was this page helpful?
0 / 5 - 0 ratings