React Interview Questions 2020 (7 Questions)

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 200

  •  3 роки тому +98

    Here is my humble contribution:
    0:40 - Unidirectional Data Flow
    3:05 - Props x State
    4:53 - Lift State Up
    7:05 - Controlled x Uncontrolled
    9:46 - Refs
    12:21 - Importance of Keys
    17:58 - Context
    For whoever is reading it:
    You have gotten so far! You are gonna get the job just believe in yourself! 😊

    • @soumyadippandit4810
      @soumyadippandit4810 2 роки тому +2

      I have an interview today. Your comment really helped. Thank you.

  • @nimamc
    @nimamc 3 роки тому +34

    This is a great video! No non-sense. I'm a pretty experienced React developer and I can confirm that these are actually things that you're going to need in your work.

  • @bearrorist5658
    @bearrorist5658 2 роки тому +2

    This was extremely helpful in reaffirming my React knowledge. I've been using it for a while in personal projects and I just found out my company is looking for a React developer. Brushing up in hopes of landing the promotion! Thanks for the video!

  • @cesarherrera9690
    @cesarherrera9690 2 роки тому

    One of the best videos I've seen and I've been already a month preparing for interviews after 6 years of working with React already, but now I want to change to work another place

  • @DesignDensity
    @DesignDensity 3 роки тому +5

    Fantastic set of questions, one thing worth mentioning in relation to Q1 is that it is also referred to as "1 Way" and "2 Way" data bindings, as per the given example, React is 1 way data-binding and Vue is 2 way data-binding.
    Thanks for sharing

  • @commondev2595
    @commondev2595 3 роки тому +1

    I am sure every viewer will learn something valuable from this video. Looking forward to more content.

  • @nachmanfriedman7821
    @nachmanfriedman7821 4 роки тому +13

    Fantastic video, I use React every day and your explanations were so good that even I learned something new! Keep up the good work!

  • @nbharucha12
    @nbharucha12 4 роки тому +11

    I agree with others, you've explained things very nicely. I've been using react for a few years and not using the index as a key is important but I've never really dug deeper into it. The way you've explained it, with an example, really clicked! Keep it up!

  • @ForevernitchProject
    @ForevernitchProject 2 роки тому

    You helped me get my current job, every question you mentioned was brought up and I was able to elaborate, you made the concepts make sense to me. I cannot thank you enough.
    I’m now a lead dev for a new project, loving my job!

    • @CodingWithChaim
      @CodingWithChaim  2 роки тому

      Wow!! Congrats! So glad my videos helped. Appreciate the comment

  • @sanjeevsinha-in
    @sanjeevsinha-in 2 роки тому

    its kind of learning entire core react concept in minimum time possible. Great content.

  • @jasonwhittaker3940
    @jasonwhittaker3940 3 роки тому

    I never fully grasped the difference between controlled vs uncontrolled component, but you explained in two minutes what seemed obvious and other documentation I couldn't.

  • @ToddDunning
    @ToddDunning 3 роки тому +2

    One of the best React tutorials out there, and I've struggled with 'em all.

  • @Mustafa-taheri
    @Mustafa-taheri 4 роки тому +1

    every answer with a code snippet... tats what makes this video amazing and a lot easier to understand... ThanQ.. Happy Coding..

  • @e_tas_
    @e_tas_ 3 роки тому +4

    I have my first front end technical interview and the material from this video was exactly what I needed, thanks

    • @mz6958
      @mz6958 3 роки тому

      how did it go?

    • @e_tas_
      @e_tas_ 3 роки тому

      @@mz6958 The recruiter made a mistake and said the role required a bachelor's in Computer Science. I got a job elsewhere though and I learned a shit ton already. But then it moved to part time because it is an early stage startup that lost funding, so now I'm considering updating my resume because I'm only gonna be working 10 hours a week at this job.

    • @mz6958
      @mz6958 3 роки тому

      @@e_tas_ Damn, that sounds like a rollercoaster. I guess if you will only be working 10 hours a week you'll have a lot of time for applying to new jobs though, right? Wish you the best of luck with it! I have my technical interview on Wednesday

    • @e_tas_
      @e_tas_ 3 роки тому

      @@mz6958 Yeah hopefully it won't be too much of an issue since I have about half a year of work experience

  • @emmanuelonwuka7664
    @emmanuelonwuka7664 2 роки тому

    Sir, this should be my first ever comment on UA-cam and I just want to say that I totally loved this video. I wish I could leave 10 likes all at once. Thank youuuuuuu

  • @sandyhmmm
    @sandyhmmm 2 роки тому

    Thanks

    • @CodingWithChaim
      @CodingWithChaim  2 роки тому

      You are most welcome! Thank you for supporting the channel!

  • @MrTedane
    @MrTedane 3 роки тому

    I've learned more in 12 minutes than all the hours I've spent o tutorials. Thank you so much definitely got a new subscriber

  • @danishdk7399
    @danishdk7399 3 роки тому

    Best video I have found so far, helped me getting prepared for my interview so well.

  • @UrbanBDKNY
    @UrbanBDKNY 3 роки тому

    Love the part about keys. Now I understand why. I knew it was not good for performance but didn’t know why

  • @harishg9429
    @harishg9429 2 роки тому

    great explanation, never really had understood unidirectional data flow in react, you made it easy. Thanks

  • @siroccomask
    @siroccomask 4 роки тому +1

    This guy knows his stuff. I really enjoyed the video!

  • @petroniemkov6516
    @petroniemkov6516 Рік тому

    one of the best teachers I ever seen

  • @inordirectional
    @inordirectional 3 роки тому

    Sweet, I finally get why keys are important, and I'll stop with the key={i} just to quiet warnings

    • @CodingWithChaim
      @CodingWithChaim  3 роки тому +1

      Not in all cases is it bad. This really is only an issue with a data set where the order of items can change, like for example if you delete an item. In a case where you simply render the list, index is ok

  • @mdmoinmoin8888
    @mdmoinmoin8888 3 роки тому

    Man you are special my brain had to be 💯 focused and not even for a single second I got bored.

  • @kckunal2612
    @kckunal2612 4 роки тому +2

    I am so glad I discovered your channel - thanks for doing such an amazing job explaining everything with so much detail !

  • @andycao
    @andycao 4 роки тому +92

    I alway watch this kind of video by using 1.25x. but this time I need to a little bit slow it down. Anyway, thanks for sharing these knowledge.

    • @yogevstrauber8657
      @yogevstrauber8657 3 роки тому +8

      same here! sometimes I use even use 1.75 but this video I used 0.75 lol. I'm glad I not the only one

    • @CBMaster2
      @CBMaster2 3 роки тому

      lmao n00b me i used 2.5x

    • @brianpato
      @brianpato 3 роки тому

      Can confirm

    • @thedeziner
      @thedeziner 3 роки тому

      Same here

  • @chennurumanu
    @chennurumanu 2 роки тому

    Fantastic video with basics at one place

  • @19boro76
    @19boro76 3 роки тому

    Excellent video!!! I am learning React JS and I have found the video very informative, especially when you go over the snippets and explain them thoroughly. Great job, thumbs up 👍

  • @JimmyCheng
    @JimmyCheng 2 роки тому

    You're probably the smartest instructor I've ever seen. Everything you say is to the point. One suggestion thought, maybe consider making the pacing a bit slower :)

  • @mr.arif313vl2kj
    @mr.arif313vl2kj 2 роки тому

    this guy deserves a medal

  • @mokroargra7277
    @mokroargra7277 4 роки тому +3

    This was great ive been learning a lot of react past 6 months and you cleared up a lot. Thanks!

  • @jamesjefferson163
    @jamesjefferson163 3 роки тому

    Great content. Clear and concise explanation and examples. Well done.

  • @Sarah-rc8dl
    @Sarah-rc8dl 3 роки тому +1

    You really give great explanations on crucial topics of react. Thank you!

  • @adnantariq3346
    @adnantariq3346 Рік тому

    This guys is awesome in his explanation

  • @parhamkhamsepour7633
    @parhamkhamsepour7633 2 роки тому

    This was so helpful. Thanks. do you have a video explaining Hooks and why they are useful and why are they needed?

  • @fullstackprojects5615
    @fullstackprojects5615 3 роки тому

    'Lifting State Up' question : You didn't mention the main point that I think is the core to the answer to that question -
    When we lift the state up then we call a method in the child component that in turns calls the reference to a function that was passed as a prop to the child from the parent component. This is done in order to update the state in the parent component because updating the state of parent component cannot directly done in child component. In this way we kind of lift the state up from child component to parent component which ensures that parent is aware of the fact that child is requesting the state to be changed potentially because child relies on the updated value of that state.
    I am not able to understand your point for this particular question in the video. Could you please explain?

  • @johnbaltes7518
    @johnbaltes7518 3 роки тому

    Great video, solid explanation on prop drilling and useContext.

  • @jagrutipatel5256
    @jagrutipatel5256 2 роки тому

    Very easy to understand with examples. Thank you

  • @sagojez
    @sagojez 3 роки тому +2

    0:39 What does unidirectional data flow means?
    3:07 What is the difference between props and state
    4:50 What does it mean to Lift a State Up?
    7:02 What’s the difference between Controlled components vs Uncontrolled components?
    9:45 What are refs in React?
    12:20 What are keys and why are they important when rendering lists?
    18:03 What is Context?

  • @ruinnn4104
    @ruinnn4104 4 роки тому

    Thanks Chaim! Looking forward to your future content

  • @iliketocode6986
    @iliketocode6986 4 роки тому

    you make me smarter thank you. My react iq increases with every video thank you.

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому

      You are very welcome! Glad you’re finding the videos helpful

  • @MachiBhasad
    @MachiBhasad 4 роки тому

    It's crazy how many of these questions I was asked in a recent interview, and I couldn't give convincing answers. If only I had gone through these 14 questions before. Great vid nonetheless, and I found the JS playlist equally helpful. Thanks again!

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      Hopefully this helps you ace your next interview

  • @ganeshbirajdar4382
    @ganeshbirajdar4382 3 роки тому

    Thank you so much. The info was clear and precise and it helped me clear some misconceptions too ! Great work!

  • @miguelencarnacion9278
    @miguelencarnacion9278 3 роки тому

    Excelent content and you know how to explain it clearly. Great video!

  • @theoryofdeadman482
    @theoryofdeadman482 4 роки тому +1

    Wow , your the 1st one i didnt have to speed up to 1.5x . Good video!

  • @Adam-nw1vy
    @Adam-nw1vy Рік тому

    You have a talent for explaining things! Keep doing this. I have a question: what level are these questions? Say I'm someone with almost 2 years of experience. Is this what I should expect or this is something that a more junior/entry level dev would be asked?

  • @devanshishah9481
    @devanshishah9481 3 роки тому

    This video is so detailed and very nicely explained. Thank you!

  • @jamesdong8932
    @jamesdong8932 4 роки тому

    Great video, detailed explanation of everything, easy to understand. Just have to slow it down to 0.75x

  • @sumanas6993
    @sumanas6993 4 роки тому

    Liked the detailed explanation. Really helpful. Specifically key and context. It gave me clear idea

  • @uicornerwithJ
    @uicornerwithJ 3 роки тому

    I really liked your explanation about using n.id instead of index in key attributes. Amazing stuff.

  • @amirrahnama8104
    @amirrahnama8104 Рік тому

    Super insightful!

  • @GarrettVan
    @GarrettVan 4 роки тому +5

    This is very helpful interview prep. Thank you!

  • @clockwerkz
    @clockwerkz 4 роки тому

    Love this video. A lot of my React learning has come from Udemy there's so much of this that I've learned how to do, but never really understood the "why."

  • @samuelpai9601
    @samuelpai9601 3 роки тому

    great video Chaim, learned so much!!!

  • @omancoding5687
    @omancoding5687 4 роки тому

    This is really video, the concepts are made clear. Thanks Chaim. Love from Oman.

  • @Iallisios
    @Iallisios 4 роки тому +1

    fantastic video. Thorough explanation and a good choice of questions :) Thank you

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому

      My pleasure! Very glad you’ve found it helpful

  • @maximstolovich2163
    @maximstolovich2163 4 роки тому +1

    Awesome content and up to date. Love it!

  • @jonahg6564
    @jonahg6564 4 роки тому +2

    Would you make a learn react tutorial? I feel like you’re an amazing teacher and it’d help a lot

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      I have been toying with the idea for some time now

    • @jonahg6564
      @jonahg6564 4 роки тому +4

      Coding With Chaim ahhh I would love it if you have the time! I would watch full ads and view multiple times 😂😂😂🙏🏼🙏🏼🙏🏼

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      Lol 😂 yea there is a good chance I’ll do it

    • @jonahg6564
      @jonahg6564 4 роки тому

      Coding With Chaim by the way thank you for the content you are already making!

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      Jonah G you are most welcome

  • @Alexgub84
    @Alexgub84 3 роки тому

    Thanks for the great examples, I learned a lot! Going to your next video :)

  • @pouriakalantari6537
    @pouriakalantari6537 2 роки тому

    Very insightful and full content 👌 👏

  • @BobbyBundlez
    @BobbyBundlez 4 роки тому

    great. i have trouble articulating this stuff but know answers for most part. this really helped me with my soft skills!

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      Try writing the answers to these questions. Might help you articulate more clearly

    • @BobbyBundlez
      @BobbyBundlez 4 роки тому

      @@CodingWithChaim just did exactly that! i took a course with stephen girder on udemy and he covered sooo much of this stuff (really great course and extensive) but hearing it all rephrased through your words makes it easier to form my own way of phrasing this all now as well! loved your explanation of unidirectional and the reconciliation model... never heard of that before!

  • @muhammadjawadurrahim4883
    @muhammadjawadurrahim4883 3 роки тому

    Great Content !!! Thank you ..Hope to see more videos like these

  • @violetaveleva6143
    @violetaveleva6143 4 роки тому

    Great questions and excellent explanation! Thanks for sharing

  • @aaronomale3930
    @aaronomale3930 3 роки тому +1

    You're a great teacher. I'm learning react and couldn't grasp certain concepts until now. Do you have a react bootcamp?

  • @ElectricBlanket1122
    @ElectricBlanket1122 2 роки тому

    Loved it!

  • @zaremakayasova8097
    @zaremakayasova8097 3 роки тому

    Thank your for this amazing React tutorial!

  • @kylepaulmcfly
    @kylepaulmcfly 3 роки тому

    wow you seem to be really an expert at React

  • @comod
    @comod 2 роки тому

    Leaved a like to watch/understand later

  • @reymarkandog1441
    @reymarkandog1441 3 роки тому

    Thanks, good sir. I've learned a lot from this one video.

  • @otockian
    @otockian 3 роки тому +1

    React literally took me 6 weeks to become an "expert" at. It's insanely simple, especially coming from doing Angular for many years. React was a damn joke to pickup. Angular does pretty much everything in a far superior way, except for how React handles state. I do like the new State stuff in React way better. But the biggest thing that really hasn't taken off in React world which funny enough is called Reactive Extensions. Far superior for handling real time data, way more efficient to have data pushed to you vs. polling.

    • @andrewl5201
      @andrewl5201 2 роки тому

      React is hella simple, the hard part is just learning all the third party libraries that you need to make it do anything useful

  • @aadil4236
    @aadil4236 3 роки тому

    Do you necessarily have to use "refs" to get the underlying DOM element, can't you use document.querySelector() for that. I am new to react. Would love an explanation.

  • @abhatti26
    @abhatti26 3 роки тому

    17:28 , if we use index as keys in the list( not recommended ) , and delete a certain element of the list , does react delete it from the actual DOM rather than the virtual DOM ?. Is that the reason why the whole list gets refreshed ? please elaborate

  • @fullstackprojects5615
    @fullstackprojects5615 3 роки тому

    In your "Controlled vs Uncontrolled" question : Would your input reflect the keypress changes in case of Uncontrolled component? This part is not shown in the video.

  • @Scottni2
    @Scottni2 3 роки тому

    This....is.....Amazing. SUBSCRIBED

  • @CsabaKissColorado
    @CsabaKissColorado 3 роки тому +1

    You should have a counter how many times you say "actually" . Joking aside, great content.

  • @vikasni95
    @vikasni95 4 роки тому +1

    Wow sir tht was an amazing tutorial, U hve just rocked sir, Sir ihve one request plz keep making interview tutorial like this on react, Tqu sir lots of love and support from india 🇮🇳

  • @self-taughtdev
    @self-taughtdev 2 роки тому

    Nice! Thanks

  • @dukewellington5222
    @dukewellington5222 3 роки тому

    Did I miss something here? What actually happens when a user types something into the input field of the uncontrolled component and then hits the button, that this component has? Otherwhise..great content, really gives me some insight!

  • @anubhapant5227
    @anubhapant5227 3 роки тому

    It's an amazing interview tutorial.

  • @irynah2659
    @irynah2659 4 роки тому

    Great video and explanation, thanks!

  • @VictoriousVipin
    @VictoriousVipin 4 роки тому

    Hi Chaim,
    I have a question about context
    What if i have grandchild component in a separat file than how would i get the access to Context that you have declared globally at line no. 4?

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      You need to export it and then import where needed

  • @magatsu82
    @magatsu82 2 роки тому

    I thought unidirectional data flow meant that the data flows downwards from parent to child, nothing related to state and dom. I'm confused now

    • @CodingWithChaim
      @CodingWithChaim  2 роки тому

      This is technically correct. The fact that data travels down from parent to child and not back up from child to parent, is indeed another form of Unidirectional Data Flow

    • @CodingWithChaim
      @CodingWithChaim  2 роки тому

      I believe this SO thread can help you get some clarity on the topic as it was discussed in this video stackoverflow.com/questions/34519889/can-anyone-explain-the-difference-between-reacts-one-way-data-binding-and-angula

  • @ushawadhwani9426
    @ushawadhwani9426 3 роки тому

    is context like store?

  • @alexeyvasilkov436
    @alexeyvasilkov436 3 роки тому

    is this a good idea to use index for key in list item?

  • @alexcc316
    @alexcc316 3 роки тому

    omG I had to set the video to 0.75 haha. Very cool btw, thank you

  • @ПавелШиляев-в3ь
    @ПавелШиляев-в3ь 4 роки тому +2

    Plz, record tutorial "How to work with react-google-maps" with customization / markers / tooltip for markers, or just clone map from airbnb)

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому

      Thank you for the suggestion, I will add to the list

  • @saitejagatadi9711
    @saitejagatadi9711 4 роки тому

    Great Explanation

  • @sunilthind3257
    @sunilthind3257 4 роки тому

    Thanks for this wonderful video.

  • @CsabaKissColorado
    @CsabaKissColorado 3 роки тому

    8:15 Line 23, no wonder that the component is out of control. :)

  • @asifahmed6568
    @asifahmed6568 3 роки тому

    Pure Gold 😍

  • @prateekkumar5028
    @prateekkumar5028 3 роки тому

    Can we use context in any part of the code or it has to be in a particular tree?

  • @lord4791
    @lord4791 4 роки тому

    Great Video

  • @smartlessons2305
    @smartlessons2305 4 роки тому

    A lot of projects require skill to work with datepikers, but there is no good tutorials for this topic.. Is it possible to create react tutorial, kind of "How to use complex datepicker" for example from airbnb, and to create really complex, for example two/three open calendars eith tooltip on every day/date and info in that tooltip.

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому

      I’m gonna look into this. It seems like a fun idea for a video

  • @shenth27
    @shenth27 4 роки тому +1

    Good to watch at .75x speed

  • @karthikp6473
    @karthikp6473 4 роки тому

    hi there chaim, which course do you recommend to learn react... i was planning to go with maximillian's course on udemy

    • @CodingWithChaim
      @CodingWithChaim  4 роки тому +1

      That’s a solid choice he’s a good teacher

    • @karthikp6473
      @karthikp6473 4 роки тому

      @@CodingWithChaim thanks chaim! already started , going well for now

  • @giovanyreyes4470
    @giovanyreyes4470 3 роки тому

    this was helpful

  • @hanibal43
    @hanibal43 4 роки тому +2

    Love your vids! if you could talk a bit slower that would help a lot to follow

  • @gecko499
    @gecko499 3 роки тому +1

    Your answer to unidirectional flow is wrong. You are getting unidirectional flow mixed up with one-way binding.

  • @lifeincentralvalley9430
    @lifeincentralvalley9430 2 роки тому +1

    Those are good interview questions, but the explanations are lengthy and hideous, wish it could be shorter and right to the point

  • @rainyoutthere7899
    @rainyoutthere7899 3 роки тому

    A-w-e-s-o-m-e video