From 39613c72d4a0a2c2ed8d65df1849c0404a7c5118 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 15 May 2021 16:25:58 -0400 Subject: [PATCH] Update redirect-on-login-and-logout.md --- _chapters/redirect-on-login-and-logout.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_chapters/redirect-on-login-and-logout.md b/_chapters/redirect-on-login-and-logout.md index 470578029..d36f24d56 100644 --- a/_chapters/redirect-on-login-and-logout.md +++ b/_chapters/redirect-on-login-and-logout.md @@ -23,6 +23,8 @@ We are going to use the `useHistory` hook that comes with React Router. This wil const history = useHistory(); ``` +Make sure to add it below the `export default function Login() {` line. + {%change%} Then update the `handleSubmit` method in `src/containers/Login.js` to look like this: ``` javascript