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.
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 .
@@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
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 🙏
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❤
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.
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??
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 ?👍
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
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.
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
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.
Why do we use key prop?
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.
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 .
@@leviiiplays1330 nice but list to hum direct bhi render kara skte hai, usme key prop kyu nhi chahiye
@@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
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 🙏
That's how we grow. Nice
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❤
Bohot Acha lga bhai ye Sunkar ❤ Shukria apka
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.
Loved it. Keep bringing mock interview videos.
Try krte hai
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??
Why use return? Without return its work. We use parentheses ()
Explain why use return.
You can use it to add more logic, like declaring new variables
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 ?👍
For exam. {data[0].name
{data[1].name on second time
?? I am write or not?
Didn't get you
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
Right.
otp toh hard lag rha hai bahut mai agr fresher hokr job lene jaunga tb mujhe aise hi questions k liye prepare karna padega?
thats what i am thinking are this really fresher level question
It's little hard if you not have done this before or used any otp component
fresher agar higher package ke liye soch rha toh aise hi aayenge
1st issue is wii be he is not use return after curly bracs: time-14:28
Yes ye hi bohot baar issue deta hai interview me
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.
Hmm. Shi to hai
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
Js seekho then TS ke basics seekh lo
@SemicolonGuy thank you sir
Bhaiya yee VS code ka logo green ku hai ?
I don't have any cs degree but i know frontend development can i apply for job?😢
Yes startups me
where i can prepare for this type of questions
Semicolon Guy youtube channel
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.
Yes. So basically mobile me jaise OTP auto fill hojata hai na; vo wali functionality
Bhai mene bhi form fill kiya tha
Aapne kyu select nahi kiya mujhe
I select based on inputs so maybe other submissions were better than yours or may be I had selected a candidate
on 14:27 return keyword
Sir, this is how video and frontend development related.
Kya ? Smjh nhi aya
@@SemicolonGuy Sir, make more videos like this.
Fresher don't watch this kind of video if you dipressed easily, focus on react fundamentals then start dsa .🙏
can you tell me the reason, are experienced only able to code for these type of questions?
I think he is telling about mock interviews
ise acha svelte js kar loo
Kyu?