Explore Library
TypeScriptWorking with JavaScript & Type Declarations

63 items

1

Typing React Props, Hooks & Events

Slides / Video
2

Typing React Props, Hooks & Events

Flashcard
3

Typing React Props, State & Events

Slides / Video
4

Typing React Props, State & Events

Flashcard
5

Typing React Props Correctly

Code Quiz
6

Typing React Props with Interfaces

Quiz
7

Typing React Props & State

Slides / Video
8

Typing React Props & State

Flashcard
9

Module Augmentation Basics

Flashcard
10

Misplaced @ts-ignore Directive

Code Quiz
11

JSDoc @typedef Property Syntax

Code Quiz
12

Module Augmentation Basics

Slides / Video
13

Type-Checking JS with allowJs and checkJs

Slides / Video
14

Generating Declaration Files Automatically

Slides / Video
15

Writing Declaration Files for Untyped Libraries

Slides / Video
16

Installing @types from DefinitelyTyped

Slides / Video
17

Ambient Modules and Global Declarations

Slides / Video
18

The declare Keyword for Ambient Declarations

Slides / Video
19

What Declaration Files Are

Slides / Video
20

esModuleInterop for JS Interop

Slides / Video
21

typeRoots and types Configuration

Slides / Video
22

TypeScript Check Comments Explained

Slides / Video
23

Gradual Migration to TypeScript

Slides / Video
24

JSDoc Type Annotations in JavaScript

Slides / Video
25

@ts-check and @ts-nocheck

Quiz
26

JSDoc Type Annotations

Quiz
27

Declaring Untyped Modules

Quiz
28

@param and @type Precision

Quiz
29

Installing @types Packages

Quiz
30

The declare Keyword

Quiz
31

Automatic Type Acquisition

Quiz
32

@ts-ignore vs @ts-expect-error

Quiz
33

Ambient Variable and Function Declarations

Quiz
34

Typing the global Object

Quiz
35

Purpose of Declaration Files

Quiz
36

declare namespace Usage

Quiz
37

Gradual JS to TS Migration

Quiz
38

Overloaded Signatures in .d.ts

Code Quiz
39

Implicit any from JS Import

Code Quiz
40

JSDoc @param and @returns

Code Quiz
41

JSDoc @type Annotation

Code Quiz
42

UMD Global Declaration Syntax

Code Quiz
43

Triple-Slash Reference Syntax

Code Quiz
44

declare namespace Members

Code Quiz
45

Ambient Class Shape

Code Quiz
46

Ambient const enum

Code Quiz
47

Ambient Function Signature

Code Quiz
48

Value Inside a .d.ts File

Code Quiz
49

Installing @types Packages

Code Quiz
50

Ambient Variable with declare

Code Quiz
51

Installing @types Packages

Flashcard
52

The declare Keyword

Flashcard
53

@ts-check and @ts-nocheck

Flashcard
54

Global Augmentation with declare global

Flashcard
55

Wildcard Module Declarations

Flashcard
56

Gradual JS to TS Migration

Flashcard
57

Structure of an @types Package

Flashcard
58

Ambient Global Variables

Flashcard
59

@ts-ignore vs @ts-expect-error

Flashcard
60

Handling Implicit any

Flashcard
61

Triple-Slash Directives

Flashcard
62

JSDoc for Typing JavaScript

Flashcard
63

Ambient Functions

Flashcard
Flashcard

Typing React Props, State & Events

Learn how to type component props, useState, and event handlers in React with TypeScript.

Question

How do you type props, state, and event handlers in a React function component?

Click to reveal answer