DEV Community

harleen kukreja
harleen kukreja

Posted on

Learning TypeScript with React – Any Tips?

Today was my first day diving into TypeScript! ✨
I learned how to use types in props and how to add types to useState in React.

Still wrapping my head around some concepts, but I can already see how TypeScript is helping me write cleaner, more reliable code. 🧠💡

If you’ve been working with TypeScript (or are learning it too), I’d love to hear your tips or feedback.
Let’s grow together! 🙌

Top comments (2)

Collapse
 
ansellmaximilian profile image
Ansell Maximilian • Edited

Generally, I'd just look up complete React projects in TypeScript.

You can also just learn as you go, and every time you run into problems/new concepts ask ChatGPT to explain it thoroughly for you.

Good luck!

Collapse
 
nevodavid profile image
Nevo David

Pretty cool seeing you dive in early - took me a bit to get comfortable switching my thinking to types. you ever feel like it changes the way you approach building stuff or is it just extra steps at the start?