Skip to content

Instantly share code, notes, and snippets.

@deleteman
Created January 10, 2023 23:08
Show Gist options
  • Save deleteman/e2652859760cd7f31f914b5b906960e8 to your computer and use it in GitHub Desktop.
Save deleteman/e2652859760cd7f31f914b5b906960e8 to your computer and use it in GitHub Desktop.
useEffect(() => {
listen('new-todo', () => {
inputRef.current.focus()
})
}, [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment