React useNavigate react-router-dom

    0

    2

    Jose Romero

    reactnavigateuseNavigateβ€’β€’β€’
    React TypeScript Recipes

    Returns an imperative method for changing the location. Used by Links, but may also be used by other elements to change the location.

    Library: react

    Shortcut: react.hook.navigate.use

    import { useNavigate } from 'react-router-dom';
    
    const navigate = useNavigate();
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.