javascript - What is the relation between TypeScript and React? - Stack Overflow

Lately I've been trying to lean back-end technologies. The big picture is that after learning the

Lately I've been trying to lean back-end technologies. The big picture is that after learning the back-end I wanted to learn JavaScript and later get into a JS library or Framework. I'm pretty sure that I want to lean React (easy integration with Django) but the guy in this video is claiming that React is written in TypeScript and therefore I ask myself if learning TS is the better alternative to get into React. But as a matter of fact, I've never heard someone refer to React as TypeScript since it is described as a JS library.

What is the relation here? For me this is very important since I have to structure my learning plan.

Lately I've been trying to lean back-end technologies. The big picture is that after learning the back-end I wanted to learn JavaScript and later get into a JS library or Framework. I'm pretty sure that I want to lean React (easy integration with Django) but the guy in this video is claiming that React is written in TypeScript and therefore I ask myself if learning TS is the better alternative to get into React. But as a matter of fact, I've never heard someone refer to React as TypeScript since it is described as a JS library.

What is the relation here? For me this is very important since I have to structure my learning plan.

Share Improve this question asked Sep 19, 2017 at 8:20 Xen_marXen_mar 9,77619 gold badges60 silver badges103 bronze badges 3
  • 1 react is not written in typescript. and that video is pretty bad and he's talking a lot of BS. – Nitzan Tomer Commented Sep 19, 2017 at 8:27
  • React is written in JavaScript. It has no relation to TypeScript. It has its own (very simple) runtime type checking system, but you can supplement that with either TypeScript or Flow. – Dan Prince Commented Sep 19, 2017 at 8:28
  • Angular, however, is written in TypeScript, so that might where some of the confusion is ing from. – Dan Prince Commented Sep 19, 2017 at 8:29
Add a ment  | 

1 Answer 1

Reset to default 5

Typescript is just a super set of javascript, it makes developing applications more maintainable as its strongly typed and adds a lot of OOP concepts that you can work with that javascript doesn't have.

While you could work with react in typescript, you could also do so in flow. Or even plain javascript, it really depends on what you're building and what you are fortable with.

Please see this stack overflow post for a more detailed explanation on typescript.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745260109a4619173.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信