This is code will give an error. Instead of this we can use Immediately Invoked Functional Expression In React (IIFE) ()(). useEffect(() => { (async (req, res) => { try { const response = await fetch(url); const data = await response.json(); setUsers(data); } catch (e) { console.error(e); } })(); }, []);
@upendarchowdhary89219 сағат бұрын
Very nice .... explain
@mehmoodulhassan404217 сағат бұрын
Very explicitly explained✨
@AbhishekChoudhary-fu2ng19 сағат бұрын
Experience?
@afjalmd5164Күн бұрын
Age will be 20 and the city will be changed to Gurugram , since, nested object inside user object will be changed by modification of newuser object. Shallow copy case .... To avoid this , we can use deep copy using json parse and stringify methods.
@Sachin-yt5bo3 күн бұрын
Thnaks finally after one hour i got a video where i understood
@sriharshas38894 күн бұрын
great explanation !
@becool0074 күн бұрын
Not only useeffect but yhe whole component renders twice due to strict mode
@saitejaboda37824 күн бұрын
No
@explorewithharry0075 күн бұрын
Awsome
@vendettamalize72096 күн бұрын
Wow you are not just beautiful but also smart; my type of girl ❤😘
@afnannazir86367 күн бұрын
amazing very clear and examples are to the point
@pushkar36307 күн бұрын
Mam thank you so much to explain the topic in such a detailed and simple manner
@jaydevkhatri16257 күн бұрын
Thanks🎉🎉
@nandagiriramyasree68048 күн бұрын
Can u plz again explain canActivateChild once again clearly plz
@nanthuarumugam8 күн бұрын
Now am working with Angular, My friend to suggest to watch your videos, I thought it's usual but when coming in to your videos its all more n more clarity, Very proper example. It helped me a lot at this time.
@mithanck41329 күн бұрын
Really well explained
@snlmk530510 күн бұрын
I love the way you teach, with flow. I can understand it clearly.
@rayeesdot31010 күн бұрын
Thanks for your hard work.
@pankajmenkudale12 күн бұрын
Superb....Good explained...
@waris43612 күн бұрын
Thats amazing such begginer friendly explanation. Thank you very much . I have a suggeston for you that please setup the GitHub repo for tutorials where you push the code. It will be the plus point .
@user-gt1oq6kz6o12 күн бұрын
Hi Nisha Singla, you are awesome, this video is really helpful. I loved it. Please keep on creating such videos. Thanks a lot. Again I tell you, you are awesome.
@ChandraShekarYadav-qp8pz14 күн бұрын
What A voice ❤
@kshitijtidke685816 күн бұрын
And dependency array is needed here
@kshitijtidke685816 күн бұрын
Correct work
@venkateshpamidi715517 күн бұрын
Its awesome ji 🙌🏻 thank u 🙏
@user-yo9lc5uo8h20 күн бұрын
It's literally amazing... Angular made easy 🤩
@nishantsethi662521 күн бұрын
thank you for the video, specially the last part of error codes globally
@mominmoazzamimtiyaz323121 күн бұрын
Ur teaching style is amazing mam😊
@DebasmitSamal29421 күн бұрын
Excellent
@shraddhamarathe144422 күн бұрын
Awesome explanation. very crisp and clear. :) Thanks !! I just have one doubt that can we also pass parameters to guards ??
@falashreeshirodkar143923 күн бұрын
bestt video for redux toolkit
@yogesh149524 күн бұрын
Perfect video to understand React Redux Toolkit, Thanks Nisha
@abhishekojha183725 күн бұрын
My routing part is not working
@rohankadam737627 күн бұрын
SIMPLE SOLUTION ** const str = "react is a library" const data = str.split(" ") console.log(data.sort((a,b)=>{ return a.length - b.length }))
@professormoriarty7439Ай бұрын
We are not supposed to make callback function in useEffect async we should make a separate async function inside useEffect to make api calls and call it i side useEffect itself This code will give error
@QuranJourney365Ай бұрын
the best redux toolkit tutorials i've ever seen so far! Hat off. If You can to the same with Nextjs it would be awesome
@amithaacharyaАй бұрын
i am not getting proptypes and default types when i type Link. what am i doing wrong?
@SiddireddygariJagannadhareddyАй бұрын
can you make vedios on javascript from basic to advanced vedios . Your way of teaching is nice
This video gave me the answers to all questions I have on this topic. Very much thankful to you 🙏
@arpitham8104Ай бұрын
I have been looking for this all over the internet….thank you so much 🫡🙏
@rojaravir59Ай бұрын
Yu are a great teacher nisha
@rishabhagrawal6940Ай бұрын
A very bad example and was not expecting this from a channel with such good views. The React example will render the whole tree again and again ->setTimer is called by setInterval, a new React element tree is created. ->ReactDOM.createRoot is called every time, re-initializing the entire React root. ->This results in the entire component being re-rendered from scratch every second. ->The input field is reset because a completely new component tree is rendered each time. To fix this you need to make it a controlled component and have a timer inside the component.
@breeze2440Ай бұрын
one of the best and informatic tutorial for understanding redux toolkit. thank you
@bantaBhaiDudhMalaiАй бұрын
<button type="submit" class="btn btn-primary">Submit</button> She's amazing but in this video, forgot to mention how to bind the submit button
@Tarun8336Ай бұрын
Excellent explanation
@Aravind-mh5whАй бұрын
we can write using ternary operator like below let ar = ['a','s','s','b','c','a','c','d','a','s']; function arrOccurances(items){ let output = {}; items.forEach(item=>{ output[item] = output[item] ? output[item]+1 : 1 }) return output; } console.log(arrOccurances(ar)); (OR) let ar = ['a','s','s','b','c','a','c','d','a','s']; let output = {}; for(let item of ar){ output[item] = output[item] ? output[item]+1 : 1 } console.log(output) ; not only these ways, as Nisha said we have many ways to do it. Thanks Nisha :-)
@kmahendra6691Ай бұрын
Angular is 1000 times better than react because of the well organized coding structure