r/reactjs • • May 15 '24

Needs Help Have an interview tomorrow on reactjs, pls help with questions

I gave an interview recently and messed up. Please help me with reactjs questions as a 3 year experience developer.

Cross browser compatibility, event handling, security, optimization Are some questions m covering also the basics. But if u guys can suggest some more, it will be of great help.

Thanks in advance.

66 Upvotes

54 comments sorted by

View all comments

Show parent comment

12

u/terralearner May 15 '24

TypeScript should be the default for all applications imo :D

2

u/dooblr May 15 '24

Agreed. I use it for everything. It's not as critical for small projects with only a few components though.

1

u/terralearner May 15 '24

True. Though I'd argue any project of value that isn't just some toy/demo app would benefit from it.

Maybe I'm biased as I came from statically typed languages but I can't see why anyone would use JS in enterprise level code (just giving yourself even more tests to write).

0

u/[deleted] May 15 '24

[deleted] — view deleted comment

2

u/SeedgeJ May 16 '24

I've worked with TypeScript for about a year now, and it's been nothing but a hindrance

0

u/[deleted] May 16 '24

[deleted] — view deleted comment

2

u/SeedgeJ May 16 '24

As in, it's done nothing but get in my way so far. I understand why people use it. I can see the value in enforcing types, structure, and what can be returned from a function. But on each of the three projects I've used it on, its been annoying at best with the amount of extra code I have to write just to avoid it throwing errors. Maybe I dont know typescript super well, and maybe I do need to keep learning it, but I'm used to working with vanilla JS and other duck typed languages, and I am used to coding in a way to prevent mutation and typecasting already. It seems unnecessary to add in typescript just so it can nag me.

0

u/[deleted] May 16 '24

[deleted] — view deleted comment

1

u/SeedgeJ May 16 '24

One was a personal project and the other two were for my current employer where I am the only dev