Answer to second question at (7:58 ) is : newItems references to items(state) when we use push on newItems nothing happens since items(state) inside react is updated only using setState, now in next line when we setItems , item state remains unchanged , thus no re rendering .
10:24 When updating React state arrays, always create a new array to avoid mutating the original state directly. This ensures React detects changes and updates the UI as expected.
Hats off 🔥 to your hard work !! and this interview series is so interesting that after a long hectic day at work i can still watch 10 episodes. please keep on posting such interview experiences. it helps fresher as well as experienced candidate to prepare for interview in a short span of time. kudos to you !!
18:26 Try to ask medium and small level DSA questions, if they are not able to answer, provide some hints and make them confrotable, so that their confidence will increase. You are doing a great job. 18:26
In the second question, you assigned newItems = items. Reference to original array. Then you are mutating the original array. Push method mutates the original array. Thats why component not re rendering. That's why nothing is happening. We need to set new array there.
Hello sir! I am loving your videos... i wanted to share that I've been through somewhat similar toxic culture leading to depression. This wasted a significant part of my time coping up with it, when i was supposed to prepare for interviews, get a job and so on. Anyways... now i am looking for jobs, i have a cumulative work experience of 2yr+ but there is a significant gap in between... I was wondering if you could guide me, maybe counselling session of some sorts....that would be a great help!!
Hi, Join our 3100+ member Career with Vasanth telegram group here, you can discuss things like this and a lot of opening related information is also shared here: t.me/uncommongeek
Sir, I'm Maniteja Gurenka, and I recently graduated in Btech-Biotechnology from Sathyabama University in 2023. Currently, I am learning the MERN stack with a focus on frontend development using React.js. I am actively searching for job opportunities and would love the chance to have a mock interview with you. Could you please give me a chance!?
Hi join my telegram group here t.me/uncommongeek and follow me on linkedin here www.linkedin.com/in/careerwithvasanth/ I will update regarding mock interview here and that will usually over weekend. You can check it and register for the mock interview.
Hai sir im Ranjith Kumar from tamil nadu im 2019 passout student i have 5 yrs experience in non it services engineer but now im try to change my career in IT site and now i start learning frontend like html css anda java script give me correct way to how to get job in it sector
In the middle of video watching Javascript coding problem. The only way to answer it if you understand how javascript works behind the scene. you need to know about Call stack, callback queue, event loop.
Answer to second question at (7:58 ) is : newItems references to items(state) when we use push on newItems nothing happens since items(state) inside react is updated only using setState, now in next line when we setItems , item state remains unchanged , thus no re rendering .
Correct !! I have answered it at the end !! please check it.
10:24 When updating React state arrays, always create a new array to avoid mutating the original state directly. This ensures React detects changes and updates the UI as expected.
Superb! thanks for these videos, these are really helping.
Glad you like them!
Hats off 🔥 to your hard work !! and this interview series is so interesting that after a long hectic day at work i can still watch 10 episodes. please keep on posting such interview experiences. it helps fresher as well as experienced candidate to prepare for interview in a short span of time.
kudos to you !!
Thank you so much !
Is your book out ?
@@sahilbisht3661 Sorry I couldn't complete it. I have few other plans now, I will update regarding them soon.
18:26 Try to ask medium and small level DSA questions, if they are not able to answer, provide some hints and make them confrotable, so that their confidence will increase.
You are doing a great job. 18:26
Suggestion taken !
@@careerwithvasanth ask some challenging task they did. This is the most asked question.
@@sunilkumar-zf4dx Sure I will consider this on next interview.
In the second question, you assigned newItems = items. Reference to original array. Then you are mutating the original array. Push method mutates the original array. Thats why component not re rendering. That's why nothing is happening. We need to set new array there.
Correct !! I have answered it at the end of the video !! watch my explanation too
@@careerwithvasanth yes I saw that too. Great video and great series. Thank you!
Thank you!!
8.35 i think kush nahi hoga kyuki page ko render karna hoga jab hum button pe click karenge state change nahi hogi
Hello sir! I am loving your videos... i wanted to share that I've been through somewhat similar toxic culture leading to depression. This wasted a significant part of my time coping up with it, when i was supposed to prepare for interviews, get a job and so on.
Anyways... now i am looking for jobs, i have a cumulative work experience of 2yr+ but there is a significant gap in between...
I was wondering if you could guide me, maybe counselling session of some sorts....that would be a great help!!
Hi, Join our 3100+ member Career with Vasanth telegram group here, you can discuss things like this and a lot of opening related information is also shared here: t.me/uncommongeek
Question:2 same reference so it will not rerender, instead we need to use a spread operator or any other array method which will give new reference
Correct !!
Sir, I'm Maniteja Gurenka, and I recently graduated in Btech-Biotechnology from Sathyabama University in 2023. Currently, I am learning the MERN stack with a focus on frontend development using React.js. I am actively searching for job opportunities and would love the chance to have a mock interview with you. Could you please give me a chance!?
Hi join my telegram group here t.me/uncommongeek and follow me on linkedin here www.linkedin.com/in/careerwithvasanth/ I will update regarding mock interview here and that will usually over weekend. You can check it and register for the mock interview.
@@careerwithvasanth Ok sir. Thank you!
Hai sir im Ranjith Kumar from tamil nadu im 2019 passout student i have 5 yrs experience in non it services engineer but now im try to change my career in IT site and now i start learning frontend like html css anda java script give me correct way to how to get job in it sector
Join my group here: t.me/uncommongeek and discuss.
Good luck, brother! The competition is very high out there, so prepare well.
Sir can you provied us list of scenario-based interview questions as you mentions in this video. it will really help us.
Sure, I will try to make a video on list of topics and update here soon !!
@@careerwithvasanth yes please
Thanks, it's very helpful. Just one suggestion - please don't confuse with so much cross-questioning 😂
Hahah !!
In the middle of video watching Javascript coding problem. The only way to answer it if you understand how javascript works behind the scene. you need to know about Call stack, callback queue, event loop.