Using TypeScript with React
simonknott.de
Using TypeScript with React
1–10 of 195 posts
Re: Using TypeScript with React
#2Re: Using TypeScript with React
#3 - Quite often when using unreleased APIs, you turn to using "any" all over the place.
- Development time is slower than writing in regular JS/React. This started to become a major issue due to the nature of our project being a prototype (fast iterations on ideas and features).
- Lots of frustration when a package doesn't have types (although most major ones do have them).
Otherwise it has been a joy writing the application, and it does "document" your components significantly better.Re: Using TypeScript with React
#4During my internship we've built a large prototype using React+Typescript, and here are some of my key take aways from it: - Quite often when using unreleased APIs, you turn to using "any" all over the place. - Development time is slower than writing in regular JS/React. This started to become a major issue due to the nature of our project being a prototype (fast iterations on ideas and features). - Lots of frustrati…
Re: Using TypeScript with React
#5Re: Using TypeScript with React
#6During my internship we've built a large prototype using React+Typescript, and here are some of my key take aways from it: - Quite often when using unreleased APIs, you turn to using "any" all over the place. - Development time is slower than writing in regular JS/React. This started to become a major issue due to the nature of our project being a prototype (fast iterations on ideas and features). - Lots of frustrati…
Re: Using TypeScript with React
#7If you are going to learn a new programming language for web UI, why not go for Elm ? You get so much more than just static types with Elm.
Re: Using TypeScript with React
#8If you are going to learn a new programming language for web UI, why not go for Elm ? You get so much more than just static types with Elm.
- Skill transfer. If I learn react, I can use my JavaScript skill to understand how everything works under the hood. If I learn Typescript with React, knowing react, I can focus on learning new language feature while not learning at the same time how to build the application. With Elm, I have to learn the language and the framework, all at once, basically learning from scratch.
- compatibilities with libraries. Here I definitely might be wrong, not knowing Elm enough, but okay, say you don't need a framework because it's included. What about utility library. Like i don't know, analytics or fancy animations?
- Job Market. I'm not going to learn a language that I cannot use anywhere, and if I'm a company, I'm not going to choose a language for which is going to be hard to hire people.
Now Elm sounds real cool and I want to like it. But it doesn't seem very wise to spend time doing that vs learning something like Apollo+Graphql, or Typescript, or Vue, which have much more obvious benefits to my career.
Re: Using TypeScript with React
#9During my internship we've built a large prototype using React+Typescript, and here are some of my key take aways from it: - Quite often when using unreleased APIs, you turn to using "any" all over the place. - Development time is slower than writing in regular JS/React. This started to become a major issue due to the nature of our project being a prototype (fast iterations on ideas and features). - Lots of frustrati…
Re: Using TypeScript with React
#10“TypeScript solves problems that I don’t have, in a way that I don’t like.”