write React.js apps with Javascript or with Typescript [closed]












-1

















I am new to React.js and right now I am learning it.

Now I am not sure if I should learn React writing Code in Javascript or in Typescript.

There are more tutorials online which teach you React using JS, but I personally like TS more.

What language would you recommend to build React.js apps










share|improve this question













closed as primarily opinion-based by p.s.w.g, jonrsharpe, Titian Cernicova-Dragomir, radarbob, Ferrybig Jan 18 at 17:36


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1





    Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

    – Titian Cernicova-Dragomir
    Jan 18 at 17:27











  • This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

    – p.s.w.g
    Jan 18 at 17:29













  • @p.s.w.g can you write js Statements in .TS files?

    – clem995
    Jan 18 at 17:31











  • @clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

    – p.s.w.g
    Jan 18 at 17:36
















-1

















I am new to React.js and right now I am learning it.

Now I am not sure if I should learn React writing Code in Javascript or in Typescript.

There are more tutorials online which teach you React using JS, but I personally like TS more.

What language would you recommend to build React.js apps










share|improve this question













closed as primarily opinion-based by p.s.w.g, jonrsharpe, Titian Cernicova-Dragomir, radarbob, Ferrybig Jan 18 at 17:36


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.














  • 1





    Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

    – Titian Cernicova-Dragomir
    Jan 18 at 17:27











  • This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

    – p.s.w.g
    Jan 18 at 17:29













  • @p.s.w.g can you write js Statements in .TS files?

    – clem995
    Jan 18 at 17:31











  • @clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

    – p.s.w.g
    Jan 18 at 17:36














-1












-1








-1










I am new to React.js and right now I am learning it.

Now I am not sure if I should learn React writing Code in Javascript or in Typescript.

There are more tutorials online which teach you React using JS, but I personally like TS more.

What language would you recommend to build React.js apps










share|improve this question
















I am new to React.js and right now I am learning it.

Now I am not sure if I should learn React writing Code in Javascript or in Typescript.

There are more tutorials online which teach you React using JS, but I personally like TS more.

What language would you recommend to build React.js apps







javascript reactjs typescript






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 18 at 17:23









clem995clem995

508




508




closed as primarily opinion-based by p.s.w.g, jonrsharpe, Titian Cernicova-Dragomir, radarbob, Ferrybig Jan 18 at 17:36


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as primarily opinion-based by p.s.w.g, jonrsharpe, Titian Cernicova-Dragomir, radarbob, Ferrybig Jan 18 at 17:36


Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 1





    Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

    – Titian Cernicova-Dragomir
    Jan 18 at 17:27











  • This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

    – p.s.w.g
    Jan 18 at 17:29













  • @p.s.w.g can you write js Statements in .TS files?

    – clem995
    Jan 18 at 17:31











  • @clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

    – p.s.w.g
    Jan 18 at 17:36














  • 1





    Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

    – Titian Cernicova-Dragomir
    Jan 18 at 17:27











  • This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

    – p.s.w.g
    Jan 18 at 17:29













  • @p.s.w.g can you write js Statements in .TS files?

    – clem995
    Jan 18 at 17:31











  • @clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

    – p.s.w.g
    Jan 18 at 17:36








1




1





Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

– Titian Cernicova-Dragomir
Jan 18 at 17:27





Use typescript, ask specific questions on stack when you have something in JS you con't use in TS ? But that is just an opinion ..

– Titian Cernicova-Dragomir
Jan 18 at 17:27













This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

– p.s.w.g
Jan 18 at 17:29







This question is primarily opinion-based. FWIW, my view is react+TS works fine, and is great for learning both. However, if you're working against a deadline, the added overhead of building a robustly-typed react application is usually not worth it, especially once you start adding other libraries like redux. In my current projects I use TS only sparingly, and only where I feel it adds the most value.

– p.s.w.g
Jan 18 at 17:29















@p.s.w.g can you write js Statements in .TS files?

– clem995
Jan 18 at 17:31





@p.s.w.g can you write js Statements in .TS files?

– clem995
Jan 18 at 17:31













@clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

– p.s.w.g
Jan 18 at 17:36





@clem995 Yes, TS is a syntactic extension to JS, so (assuming you have the right TSLint settings) nearly any valid JS is also valid TS. However, in my projects I use different build settings between .js, .ts, and .tsx (TS+React) files, this makes sure I follow the right set of rules while coding.

– p.s.w.g
Jan 18 at 17:36












1 Answer
1






active

oldest

votes


















1














It's certainly confusing which option to go for - so I understand why you ask the question



I spent around two years working with JavaScript before being introduced to TypeScript through Angular. I love working with TS now, particularly the code completion I get in VSCode, and the ability to statically type models and params with Interfaces - very helpful in large teams



Saying that, I'm glad I had a solid JS foundation before picking up TS. I would advise learning React with JavaScript until you are very comfortable with it. Also, the React community is predominantly using JS, so that should also be a key consideration






share|improve this answer


























  • thank you for your answer :)

    – clem995
    Jan 18 at 17:34


















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














It's certainly confusing which option to go for - so I understand why you ask the question



I spent around two years working with JavaScript before being introduced to TypeScript through Angular. I love working with TS now, particularly the code completion I get in VSCode, and the ability to statically type models and params with Interfaces - very helpful in large teams



Saying that, I'm glad I had a solid JS foundation before picking up TS. I would advise learning React with JavaScript until you are very comfortable with it. Also, the React community is predominantly using JS, so that should also be a key consideration






share|improve this answer


























  • thank you for your answer :)

    – clem995
    Jan 18 at 17:34
















1














It's certainly confusing which option to go for - so I understand why you ask the question



I spent around two years working with JavaScript before being introduced to TypeScript through Angular. I love working with TS now, particularly the code completion I get in VSCode, and the ability to statically type models and params with Interfaces - very helpful in large teams



Saying that, I'm glad I had a solid JS foundation before picking up TS. I would advise learning React with JavaScript until you are very comfortable with it. Also, the React community is predominantly using JS, so that should also be a key consideration






share|improve this answer


























  • thank you for your answer :)

    – clem995
    Jan 18 at 17:34














1












1








1







It's certainly confusing which option to go for - so I understand why you ask the question



I spent around two years working with JavaScript before being introduced to TypeScript through Angular. I love working with TS now, particularly the code completion I get in VSCode, and the ability to statically type models and params with Interfaces - very helpful in large teams



Saying that, I'm glad I had a solid JS foundation before picking up TS. I would advise learning React with JavaScript until you are very comfortable with it. Also, the React community is predominantly using JS, so that should also be a key consideration






share|improve this answer















It's certainly confusing which option to go for - so I understand why you ask the question



I spent around two years working with JavaScript before being introduced to TypeScript through Angular. I love working with TS now, particularly the code completion I get in VSCode, and the ability to statically type models and params with Interfaces - very helpful in large teams



Saying that, I'm glad I had a solid JS foundation before picking up TS. I would advise learning React with JavaScript until you are very comfortable with it. Also, the React community is predominantly using JS, so that should also be a key consideration







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 18 at 17:37

























answered Jan 18 at 17:33









DrenaiDrenai

3,43043153




3,43043153













  • thank you for your answer :)

    – clem995
    Jan 18 at 17:34



















  • thank you for your answer :)

    – clem995
    Jan 18 at 17:34

















thank you for your answer :)

– clem995
Jan 18 at 17:34





thank you for your answer :)

– clem995
Jan 18 at 17:34



Popular posts from this blog

Callistus III

Ostreoida

Plistias Cous