Skip to content

Commit

Permalink
Add dependency array to useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Feb 27, 2020
1 parent b94b9b7 commit 7f82e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const Header: FC<HeaderProps> = ({ className }) => {

useEffect(() => {
if (titleRef.current) titleRef.current.focus()
})
}, [])

return (
<header className={classes}>
Expand Down

0 comments on commit 7f82e0f

Please sign in to comment.