Creating a strongly-typed tuple

In this lesson, we will learn what tuples are and how we can use them in TypeScript.

Understanding a tuple #

A tuple can be thought of as an array with a fixed number of elements. Some of React’s hooks return tuples. Can you guess those hooks?

Get hands-on with 1200+ tech skills courses.