Answer the question
In order to leave comments, you need to log in
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
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.
Install VSCode or WebStorm, then hover over a function/variable and see what types it works with and what it returns.
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
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 questionAsk a Question
731 491 924 answers to any question