2

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.

3
  • 1
    react is not written in typescript. and that video is pretty bad and he's talking a lot of BS. 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. Commented Sep 19, 2017 at 8:28
  • Angular, however, is written in TypeScript, so that might where some of the confusion is coming from. Commented Sep 19, 2017 at 8:29

1 Answer 1

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 comfortable with.

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

Sign up to request clarification or add additional context in comments.

2 Comments

so the way to approach React would definitely learning JS first and then getting into React?
Personally I would go the extra mile and get into typescript. I haven't done much with react, as I mainly work with angular and typescript. Although typescript will increase the learning curve of the library short term, long term it will benefit you a LOT. As it will give you very useful code IntelliSense Which flow sort of does as well (I haven't done much with flow). But pro of typescript over flow is that it's being used in angular as well now. And many nodeJS projects. But please take my advice with a grain of salt, as its biased.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.