your recipe card header background

    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
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.