最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

发布评论

评论列表(0)

  1. 暂无评论