Frontend ReactJS fresher mock interview | Ep.21

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

КОМЕНТАРІ • 53

  • @SemicolonGuy
    @SemicolonGuy  13 днів тому +2

    Why do we use key prop?

    • @alin7295
      @alin7295 13 днів тому +1

      We use a key prop to help in the process of react conciliation. For example, if we just have repositioned a list of items, but not changed the main data, It ends up re-rendering everything. But if we provide a key as a prop then react recognizes it and more efficiently re-renders by not re-rending the items that are there, instead re-rendering only if there is new data.

    • @leviiiplays1330
      @leviiiplays1330 8 днів тому +1

      jab react baba ko re render karna padta , hai tab vo check karte hai ki item change me change hua kya ,usme key ki help se efficenncy badh jati hai nahi use karnge to react list ko correctly render nahi karnga .

    • @SemicolonGuy
      @SemicolonGuy  8 днів тому

      @@leviiiplays1330 nice but list to hum direct bhi render kara skte hai, usme key prop kyu nhi chahiye

    • @1vShanks
      @1vShanks 4 дні тому

      ⁠@@SemicolonGuykyunki jb hum direct render karte hai tb react doesn’t need keys because vo list static hoti hai aur hum usko dynamically change nahi karte so that’s y react doesn’t need keys

  • @aman_v3
    @aman_v3 13 днів тому +22

    It's me.
    I got rejected here and it's ok if I got rejected because I am consistently improving my skills and myself so if anyone wants to write comments for me like positives and negatives I will appreciate them.
    Thank you bhaiya for this opportunity 🙏

  • @shubhamganraj6723
    @shubhamganraj6723 13 днів тому +1

    sar, maine ab tak aapake sabhee videos dekhe hain, aapake videos mein ek alag hee oorja hai, aapake videos se mujhe aur dusare baccho ko kuchh naya seekhane ko milata hai, sach mein aapaka ehasaan kaaphee nahin hoga, main aapako jyaada kuchh to nahin de sakata, lekin eeshvar se praarthana karata hoon ki aapakee pragati kabhee na ruke, aur aap sada hsate aur dusroko hasate huve padhaye❤

    • @SemicolonGuy
      @SemicolonGuy  13 днів тому +1

      Bohot Acha lga bhai ye Sunkar ❤ Shukria apka

  • @xplore2953
    @xplore2953 2 дні тому +1

    We don’t use key outside map function while hard coding the input because react treat each input box as separate element and each box has different reference point but while using map it is treated as single element having same reference point so for that need key to make changes dynamically.

  • @vipulgupta4125
    @vipulgupta4125 12 днів тому +2

    Loved it. Keep bringing mock interview videos.

  • @cyberrex3003
    @cyberrex3003 2 дні тому +1

    Sir i have a question can you help??
    After watching your videos i start created projects in react now i was going to learn node js??
    But is it necessary to practice dsa for mock interviews??
    Plus i need to solve these type of questions for interviews??
    Which one needs to be my priority??

  • @chandanchaudhary1718
    @chandanchaudhary1718 4 дні тому +3

    Why use return? Without return its work. We use parentheses ()
    Explain why use return.

    • @SemicolonGuy
      @SemicolonGuy  3 дні тому

      You can use it to add more logic, like declaring new variables

  • @gaming_with_sn695
    @gaming_with_sn695 20 годин тому +1

    When we dont use map function we will use index number to say the element that in this index is your data can i am write please tell me that boost my confidence ?👍

    • @gaming_with_sn695
      @gaming_with_sn695 20 годин тому +1

      For exam. {data[0].name
      {data[1].name on second time
      ?? I am write or not?

    • @SemicolonGuy
      @SemicolonGuy  5 годин тому

      Didn't get you

  • @goldcommandchannel7322
    @goldcommandchannel7322 13 днів тому +4

    when we write the input using HardCode then the key prop is not important beacuse it is static .In static element we dont need any keys .But in dynamic rendering we need keys beacause it can change the element value or direction when user interact with it and that is area react needs keys which is important to remember the elements . So it can update the accurate elements. Sir it is right or wrong pls reply sir

  • @brokenguitarist1
    @brokenguitarist1 13 днів тому +3

    otp toh hard lag rha hai bahut mai agr fresher hokr job lene jaunga tb mujhe aise hi questions k liye prepare karna padega?

    • @voidedits5732
      @voidedits5732 12 днів тому +1

      thats what i am thinking are this really fresher level question

    • @iganic7574
      @iganic7574 12 днів тому +1

      It's little hard if you not have done this before or used any otp component

    • @sumitbhandari5487
      @sumitbhandari5487 8 днів тому +1

      fresher agar higher package ke liye soch rha toh aise hi aayenge

  • @shubhamganraj6723
    @shubhamganraj6723 13 днів тому +1

    1st issue is wii be he is not use return after curly bracs: time-14:28

    • @SemicolonGuy
      @SemicolonGuy  13 днів тому

      Yes ye hi bohot baar issue deta hai interview me

  • @himanshurawat7882
    @himanshurawat7882 9 днів тому +1

    Without Map method hum key use isliye nahi karte because hamne hard value mai code likha hota hai, wo JavaScript ke through manipulate nahi hota, this is my opinion, Maybe I am wrong.

  • @User-f4z6j
    @User-f4z6j 13 днів тому +1

    Sir, I am learning react.js . And I want a job in startup should I learn typescript and next.js instead of js react because many people says they are demanding stacks in startups

    • @SemicolonGuy
      @SemicolonGuy  13 днів тому

      Js seekho then TS ke basics seekh lo

    • @User-f4z6j
      @User-f4z6j 12 днів тому

      @SemicolonGuy thank you sir

  • @boroloksamrat
    @boroloksamrat 12 днів тому +1

    Bhaiya yee VS code ka logo green ku hai ?

  • @IndrajitPradhan-u6j
    @IndrajitPradhan-u6j 5 днів тому +1

    I don't have any cs degree but i know frontend development can i apply for job?😢

  • @RockRehan-mx6yb
    @RockRehan-mx6yb 11 днів тому +1

    where i can prepare for this type of questions

  • @tingobingo1401
    @tingobingo1401 12 днів тому +1

    Can anybody explain the question once again.
    We have to create 5 inputs field which takes numbers (basically otp) and it should have copy paste functionality.

    • @SemicolonGuy
      @SemicolonGuy  8 днів тому

      Yes. So basically mobile me jaise OTP auto fill hojata hai na; vo wali functionality

  • @sadstutes1770
    @sadstutes1770 12 днів тому +1

    Bhai mene bhi form fill kiya tha
    Aapne kyu select nahi kiya mujhe

    • @SemicolonGuy
      @SemicolonGuy  8 днів тому

      I select based on inputs so maybe other submissions were better than yours or may be I had selected a candidate

  • @SagarKumar-yq9cg
    @SagarKumar-yq9cg 10 днів тому +1

    on 14:27 return keyword

  • @zaheerrhman
    @zaheerrhman 13 днів тому +2

    Sir, this is how video and frontend development related.

    • @SemicolonGuy
      @SemicolonGuy  13 днів тому

      Kya ? Smjh nhi aya

    • @zaheerrhman
      @zaheerrhman 12 днів тому

      @@SemicolonGuy Sir, make more videos like this.

  • @AnkitPatel04
    @AnkitPatel04 12 днів тому +4

    Fresher don't watch this kind of video if you dipressed easily, focus on react fundamentals then start dsa .🙏

    • @Yashraj-p6f
      @Yashraj-p6f 11 днів тому +1

      can you tell me the reason, are experienced only able to code for these type of questions?

    • @SemicolonGuy
      @SemicolonGuy  8 днів тому

      I think he is telling about mock interviews

  • @Bhide.Svelte
    @Bhide.Svelte 12 днів тому +1

    ise acha svelte js kar loo