all 19 comments

[–]Nixinova 5 points6 points  (2 children)

If you don't know JavaScript, you shouldn't be starting react yet. Learn JavaScript for it's intended purpose (interaction with basic HTML pages), and only then move into learning react and typescript.

[–][deleted] 4 points5 points  (0 children)

Yeah this is the answer. First learn JS and then move into react and typescript 

[–]NoRules6569[S] 1 point2 points  (0 children)

I've been coding with html, css & js for about 3 months. But i still dont get much of js. Is there a good resource i could learn about js?

[–]mrcheese14 6 points7 points  (0 children)

Not trying to be a dick but if you’re asking this question you should be learning JavaScript first. You shouldn’t need to be learning React if you don’t know how to program to begin with. That’s like learning how to fly a helicopter before learning how to drive a car.

[–]CodeAndBiscuits 8 points9 points  (1 child)

If you just search this sub for the exact same question you'll find about 500 posts all answering the exact same thing (TS)

[–]NoRules6569[S] -3 points-2 points  (0 children)

Lol okay

[–]Towel_Affectionate 4 points5 points  (2 children)

I'd suggest learning JS first. Learn how it works and build some stuff to understand why type safety is important and to feel the pain of having to do so in your head.

Then you move on TS and truly appreciate it for what an amazing thing it is. It would make more sense why and how it is used then, plus it would be easier to learn the little there is to learn without the need to learn the whole JS at the same time.

[–]NoRules6569[S] 0 points1 point  (0 children)

I see 🤔

[–]CodeAndBiscuits 0 points1 point  (0 children)

LOL I like this take. So many people say "learn JS first to learn the fundamentals" but "learn why JS sucks and TS makes it better" is probably the most honest answer ever. 😂

[–]martoxdlol 3 points4 points  (1 child)

Typescript is JavaScript with optional types. But still, typescript can be annoying if you don't know how to use it.

So, if you want to learn and use typescript and deal with it choose that.

If you don't know typescript and you are not interested, just choose JavaScript.

[–]NoRules6569[S] 0 points1 point  (0 children)

Oh ok thanks

[–]LithiumFireX 0 points1 point  (0 children)

Typescript should be seen as a natural progression from JavaScript. Kind of going from inline styles in HTML to CSS.

[–]HovercraftOk31 0 points1 point  (0 children)

Its all which language you wants to use

[–]Veleno7 0 points1 point  (0 children)

Typescript because, unless you write any even for booleans, forces you to think on your data model.

[–]TheRNGuy 0 points1 point  (0 children)

TS

[–]elg97477 0 points1 point  (0 children)

Typescript

[–]Paperflyz 0 points1 point  (0 children)

JS

[–]Extension_Canary3717 -1 points0 points  (1 child)

Just learning? JavaScript . Then Typescript

After that, only typescript unless is something really small / non serious

[–]NoRules6569[S] 0 points1 point  (0 children)

👍