TypeScript

Pourquoi Typescript ? 🤨

⭐️ Static typing

⭐️ Better autocomplete

💩 Runtime errors

💩 Bad autocomplete

Un transpileur ? 😳

TS = JS + types

Ajouter TypeScript

Tsc, Vite, Next, etc...

Intellisense 🧠

Type annotation 🤓

💩

🙂

😍

Interfaces vs Types

TS + React = ❤️‍🔥

TS + React = ❤️‍🔥

useCallback 📞

useCallback 📞

Custom hooks 🪝

Custom hooks 🪝

💡

En savoir plus 👇