import { useNavigate } from 'react-router-dom';
      
      const navigate = useNavigate();
      Typescript language logo
      your recipe card header background

      React useNavigate react-router-dom

      react
      navigate
      useNavigate
      ...
      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.