V
V
vertically-challenged2022-02-07 18:03:26
typescript
vertically-challenged, 2022-02-07 18:03:26

How to deal with all these types?

I'm trying to understand TypeScript and start writing React applications on it, but how to deal with all these types, how to figure out when and what type to assign?

I have no idea what types React itself provides, what can you read about it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alex, 2022-02-07
@Kozack

Well, for starters, if you study TS, then you study TS. And then google manuals, docks, examples. Do you want to code something? The github is full of repositories with a list of ideas on what to do for practice.

L
Loli E1ON, 2022-02-07
@E1ON

Install VSCode or WebStorm, then hover over a function/variable and see what types it works with and what it returns.

A
Alex Karo, 2022-02-07
@Zraza

1) Deal first with TS itself.
2) Look at the courses. Minin, for example, does the norm.
3) You can read a book. And blog posts.
4) create-react-app + ts will help you get started
5) It ’s always good to read the doc
6) Well, Google, as always, to the rescue

A
Alexandroppolus, 2022-02-08
@Alexandroppolus

TS is studied at work. Arriving at the previous place of work, I encountered it for the first time and in a couple of weeks I more or less got used to it. First, simple, then generics, then pull up the theory and deal with the type hierarchy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question