DEV Community

Discussion on: Typescript. Simple React components.

ericandre615 profile image
Eric Andre

I'm a little confused. You keep saying this provides "strict" typing, which I assume you mean strong typing. Since typescript happens before runtime and converts the code to javascript which will be executed in a javascript runtime, which is weakly typed your code will also be weakly typed. Typescript won't magically make the javascript runtime strongly typed. Are you meaning to say it provides static typing? Sorry, this very much is a semantic issue I'm trying to clarify.

pretaporter profile image
Maksim Author

I mean, that you have typings better than any and unnecessary to declare each native html property.