Skip to content

Commit

Permalink
Update redirect-on-login-and-logout.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed May 15, 2021
1 parent 549432b commit 39613c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _chapters/redirect-on-login-and-logout.md
Expand Up @@ -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
Expand Down

0 comments on commit 39613c7

Please sign in to comment.