DEV Community

Thomas Wilfred
Thomas Wilfred

Posted on

Should I learn Typescript before React?

The development world is quite famous for these short debates, whether to have knowledge of Typescript before React or vice-versa or is it better to have an understanding of React than Vue. So to clarify this confusion, we are writing this article to make your decision better.

What is Typescript

TypeScript is a programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript is designed for the development of large applications and transcompiles to JavaScript. As TypeScript is a superset of JavaScript, existing JavaScript programs are also valid TypeScript programs.

What is React

React (also known as React.js or ReactJS) is an open-source, front-end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications. However, React is only concerned with state management and rendering that state to the DOM, so creating React applications usually requires the use of additional libraries for routing, as well as certain client-side functionality.

What should you learn first

To be fair, this is something which totally varies from person to person. Some may prefer learning Typescript before React or React before Typescript. But if you think about it, it's better to learn React before learning Typescript because it helps in understanding more frameworks and is more demand-rich in the industry.

Thanks for reading. Hope this helps.

Top comments (0)