C
C
colorkid2020-02-01 16:09:53
typescript
colorkid, 2020-02-01 16:09:53

From JS to TS, what to look out for?

Up to this point, I have always written in JS, I have not tried typescript in my work.

I want to try out TS for myself, on a trial React application. Why TS is needed, I understand how to implement all this, too, BUT the question arises what to pay attention to in your first TS application, what is most important, which TS chips are most important and often used? I can write an application strictly on TSX files and type only input props and the type I write on TS, but this is nonsense, TS gives a lot more when developing React applications than just getting rid of Prototypes ... What do you say gentlemen?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-02-01
@colorkid

Set the default linter config for ts and disable the use of any.
And then write an application.
Linter is a great teacher.
Well, documentation on ts should always be at hand.
And try some of this for the rigor of communication with the outside world.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question