Skip to content

Commit

Permalink
docs: fix useNavigate example
Browse files Browse the repository at this point in the history
# Fixing useNaviagate docs example

navigate variable declaration is missing on this page.
  • Loading branch information
joaop221 authored Sep 14, 2022
1 parent 059c095 commit 76bf45f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/hooks/use-navigate.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The `useNavigate` hook returns a function that lets you navigate programmaticall
import { useNavigate } from "react-router-dom";

function useLogoutTimer() {
const navigate = useNavigate();
const userIsInactive = useFakeInactiveUser();

useEffect(() => {
Expand Down

0 comments on commit 76bf45f

Please sign in to comment.