Is it better to switch to TypeScript from ES6 when using React?
I admire how the encapsulation works in TypeScript and there's a project I'm currently working on that uses React. How's the compatibility of TypeScript with React? Almost all the tutorials I've seen are using ES6.
Well Typescript is a good choice but it adds a steep learning overhead at the beginning so for a total beginner I wouldn't recommend Typescript with react.
unless you've worked with typescript before or react. But if you don't know react or typescript ... you just shoot yourself in the foot. I prefer TS over Flow but in theory you could just use ES6 with Flow and have approximated similar results.
j
stuff ;)
Well Typescript is a good choice but it adds a steep learning overhead at the beginning so for a total beginner I wouldn't recommend Typescript with react.
unless you've worked with typescript before or react. But if you don't know react or typescript ... you just shoot yourself in the foot. I prefer TS over Flow but in theory you could just use ES6 with Flow and have approximated similar results.