TypeScript takes all the functionalities and structures JavaScript provides as a language, and adds a few things to that. The main thing TypeScript provides is static typing. When it comes to React, we can mainly use TypeScript to type two things: component props and hooks.
Sort: