useEffect.dev
← Back to lessons

Lesson 14Better hooks with TypeScript

You don’t need TypeScript to use or create hooks, same as you don’t need it to use or create React components. But there are advantages to using TypeScript with hooks; let’s see what they are in this lesson.

First we’ll see how TypeScript is useful when using hooks, then how you can use it to improve your custom hooks.