React Summit 2024
Upcoming
Understanding Typescript: Dissecting Function Typechecks in React
Have you ever fixed a TypeScript error and found yourself wondering why your solution actually worked? TypeScript often leaves us in a state of curiosity and, occasionally, confusion.In this presentation, I aim to untangle one such mystery: why TypeScript applies different typechecks to a function parameters and its return value. It's a peculiar aspect many of us have noticed but perhaps not fully unraveled. Why do these two seemingly similar aspects of functions follow different rules?TypeScript’s aim is to protect us from typing mistakes, and our aim during this talk will be understanding its purpose, using React practical examples.