Last part of my 3 part series on writing custom React Hooks!
This one converts the Hook to use TypeScript!
Source code: https://github.com/hswolff/youtube/blob/master/videos/react-demos/src/demo/use-event-listener.tsx
Part 1, Writing the Hook: https://morioh.com/p/dc2156924439
Part 2, Conditional Hooks: https://morioh.com/p/a65010416073
#react #react hook #typescript