Skip to content

Commit

Permalink
#31 [ Router ] React Router
Browse files Browse the repository at this point in the history
  • Loading branch information
fdhhhdjd committed Sep 23, 2023
1 parent f73555e commit 56f6ff1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routers/8.useNavigate Hook/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { useNavigate } from 'react-router-dom';
const NavigateLearn8 = () => {
const navigate = useNavigate();
setTimeout(() => {
navigate('/');
// Step 1
// navigate('/');
// Step 2
navigate(-1);
}, 3000);
return (
<>
Expand Down

0 comments on commit 56f6ff1

Please sign in to comment.