---
title: "Discussion on \"How to type React events with TypeScript\" | Hashnode"
description: "Discussion on \"How to type React events with TypeScript\". https://youtu.be/3PtiSy8G-Cs\nSometimes when you write React and TypeScript code, you have to define event handlers. How do you choose the correct event type for them?\nLet's say we have an onChange event handler called handleTextChange:\nfunction App()..."
url: "https://hashnode.com/posts/how-to-type-react-events-with-typescript/60a6186db4e16849d76dbd7c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to type React events with TypeScript](https://ivanov.hashnode.dev/how-to-type-react-events-with-typescript?utm_source=hashnode&utm_medium=feed)

https://youtu.be/3PtiSy8G-Cs Sometimes when you write React and TypeScript code, you have to define event handlers. How do you choose the correct event type for them? Let's say we have an onChange event handler called handleTextChange: function App()...

May 20, 2021 · 2 min read · ivanov.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Maksim Ivanov](https://hashnode.com/@satansdeer)

@satansdeer · Stockholm, Sweden

  
[View profile](https://hashnode.com/@satansdeer)

Front end developer @ Mojang, I teach people TypeScript and React

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
