Go back to last page



    The onClick function will execute when the user clicks the Go Back button.

    Library: next

    import Router from 'next/router'
    <div onClick={() => Router.back()}>Go Back</div>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.