admin管理员组文章数量:1417070
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
1 Answer
Reset to default 5Typescript 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.
本文标签: javascriptWhat is the relation between TypeScript and ReactStack Overflow
版权声明:本文标题:javascript - What is the relation between TypeScript and React? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745260109a2650318.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论