Thanks for your effort dude. But this kind of infos may be misunderstanding for beginners and interview questuon failures! Here is nothing goes from child to parent. You still pass your getData() function from Parent To Child. If your goal is really get data from child, no need extra getData() function and more line codes (DRY Principle). You can create your [name, setName] state in parent and pass them as props to the child and render them in child. Then you will get your info from child. Thanks...
@k4f2 жыл бұрын
This was the best explanation of this concept that I have found on the Internet after 3 hours of Googling. Thank you!
@IndianCoders2 жыл бұрын
Welcome 😄
@yuvrajgaonkhowa55202 жыл бұрын
Totally Agreed. I looked so many exammples and finally got it right because of this.
@bhaskar99 Жыл бұрын
Same, last night same thing happened with me
@rajureddy58655 ай бұрын
I forgot everything after I listened these video
@2an_sound2 жыл бұрын
While your speed is inspiring, you also somehow explain this SO well, at least for me at my current level. This is a very good tutorial Nikhil!
@khatariinsaan52842 жыл бұрын
Simple, short and Clear ->> I liked
@McProski2 жыл бұрын
Fast and efficient explanation. Thanks a ton - made this concept very easy for me to understand.
@robertoriosmorales75282 жыл бұрын
your tutorial is so good that you actually explained another question i had before i couldnt find googling, awesome
@KislayRaj2 жыл бұрын
Awesome! Thanks for the tutorial!
@dipikamishra11072 жыл бұрын
Awesome tutorial! every min is informative. Thank you very much. “Keep Up The Good Work”!!
@IndianCoders2 жыл бұрын
Glad you liked it.
@Photoficaj Жыл бұрын
wow! exactly what i was looking, i found it! Many thanks!
@DavidAdochiti Жыл бұрын
thank you so much! very helpful, I needed this 👍
@shiro298 Жыл бұрын
You're a life saver, thank you!
@harshaltamrakar97218 ай бұрын
Thankyou! Your tutorial solved a problem.......
@makuzinus Жыл бұрын
Большое спасибо индусам с ютуба!!! Я 5 часов боролся с этой проблемой, в итоге нужно было просто пропсы одним элементом прописывать!!!!
@vinothm86312 жыл бұрын
why are you using state variables again in the child component? can't you use the props directly from the parent
@hichamaitjak4631 Жыл бұрын
than you brother you save me from a big problem thanks a big respect for you from morocco
@rudikshul254 ай бұрын
Thanks for guide!
@ShubhamGupta-zz8wx2 жыл бұрын
Easy to understand with your video
@IndianCoders2 жыл бұрын
Thank you for the support 🙂
@carlospen84138 ай бұрын
Awesome easy explanation to the point
@isagive2 жыл бұрын
Awesome, thank u mate.
@thunderbolthminfas2 жыл бұрын
Absolutely very simple trick, Thank you so much 😊
@hi-yi7en2 жыл бұрын
simple but effective best answer to give in interviews..tq
@Oxhshdh9 ай бұрын
Thank you Sir nice video. Helped me a Lot🙏
@ogs1028 ай бұрын
that' was really helpful
@alipourhassan32632 жыл бұрын
thank you . this video tutorial helped me a lot
@matinashrestha73252 жыл бұрын
Thanks for explaining in a clear and concise manner.
@AkaiCindy Жыл бұрын
Thank you a lot!
@hrishabhkumar19542 жыл бұрын
nice one it worked, I was able to achieve the desired result.
@parthumrania60942 жыл бұрын
A short & simple explanation, thank you :)
@hirankr Жыл бұрын
Much appreciated
@adolfomolina99192 жыл бұрын
You are the best, thanks so much bro!
@viniciusm.m.78222 жыл бұрын
Nice!!! Thanks, bro. God bless you! Forte abraço do Brasil!
@codeblackfantasy8927 Жыл бұрын
Thank you for this, reeeeallly weell done
@IndianCoders Жыл бұрын
Glad you enjoyed it!
@gandamraviteja70196 ай бұрын
very good explanation thank you
@thewandererog9 ай бұрын
Thanks sir 💖
@hrishikeshthite66742 жыл бұрын
Can you tell me how to print the that getdata not on the console but on the screen like in paragraph
@IndianCoders2 жыл бұрын
It's super simple, Store data from getdata in state variable. Update the state when receiving that data. Then you can render on screen.
@nickolas240 Жыл бұрын
@@IndianCoders thanks a lot
@devadharsank7160 Жыл бұрын
This is called as callback function ?
@techcube972 жыл бұрын
Thank You Sir❤
@kevinleon4621 Жыл бұрын
Thanks papi!
@IndianCoders Жыл бұрын
Any time!
@karthikeyanj49522 жыл бұрын
Good Explanation Nikhil!
@IndianCoders2 жыл бұрын
Thanks 🙏
@rutvijbagde633 Жыл бұрын
You are techinfoyt 😮
@IndianCoders Жыл бұрын
Means?
@snehalgawade-n9u Жыл бұрын
Hello, Thanks for covering this topic. Could you please explain after state lifting how to use that data in the parent component which we have received from child component? (Now we can print that data in the console but how to access that data outside the function in the Parent Component?)
@IndianCoders Жыл бұрын
use the state in parent one, and pass both state and setState to child. done😀
@snehalgawade-n9u Жыл бұрын
@IndianCoders Thanks! If possible, could you please explain it with an example? I would be very grateful to you.
@hiranyasarma88862 жыл бұрын
Nice tutorial
@aninexclusive4662 жыл бұрын
Nice explanation
@idk-dr7fo Жыл бұрын
thank youuuuuuuuuuuu
@agustingiannoni69102 жыл бұрын
tank u my dear frend!!!!
@souvikkumarpaul42822 жыл бұрын
how to store the data in mysql database via nodejs
@IndianCoders2 жыл бұрын
Will try to create video on that!
@HarpreetSingh-br2ix2 жыл бұрын
how do you pass multiple input fileds from child to parent without using state in child?
@santiagodelrivero2 жыл бұрын
You could use state in the parent and then pass the entire state as props to the child. Doing so, you could set the state in the child and it will automatically change the state in the parent
@Spluli2 жыл бұрын
eggsaggly what i needed :)
@thohidbaig405 Жыл бұрын
very help full video❤ , and how can we store that value in a constant variable?
@annayeung789 Жыл бұрын
Thanks a lot for the video! Very precise and to-the-point!
@IndianCoders Жыл бұрын
Glad you enjoyed it!
@khoanguyentuan417 Жыл бұрын
thanks
@MANISHKUMAR-ib3zq2 жыл бұрын
Much fast video, but much clear concept. Aabhaaar🙏🙏
@AdilKhan-gj4jy2 жыл бұрын
Very clear but please explain in more details because we some are beginners
@ankurgangwar4923 Жыл бұрын
bhai y dusro ko samghane k liye bnai thi ya khud ka revision chl rha tha.
@atifreza4607 Жыл бұрын
i bought ur mui styled course from udemy
@lmanqhrmanova80067 ай бұрын
But I have 3 differences between my parent and child elements, in this case personally, this way shouldn't work, how i can achieve this, I already have used a lot of ways but I can't already I feel extausted😢
@madelsonacosta79622 жыл бұрын
Thank you for this clear explanation, I appreciate it. Would you mind explaining what's a parent and a child in react, please? I don't seem to grasp it.
@IndianCoders2 жыл бұрын
Parents are those components who render child components. Like the List component loops through an array and renders each ListItem (child) component inside it.
@madelsonacosta79622 жыл бұрын
@@IndianCoders Thank you so much!
@haider_javaid2 жыл бұрын
@@madelsonacosta7962 You will understand much better if the parent and child component is in a different file.
@sampathb29202 жыл бұрын
its good and supper but go little slow , beginner also watching ,we are expecting like this only
@ashutoshjha5522 Жыл бұрын
Is it lifting state up ? Passing data from child to parent?we can do it with use imperative handle too please highlight if anyone can m confused Moreover here prop is passing from parents to child
@kunalsingh94612 жыл бұрын
super and sample
@CatchyVideo Жыл бұрын
Bro , here again u passed props from parent to child only ..how come it's concept called child to parent ..
@IndianCoders Жыл бұрын
Yes we added callback in child, so when child component fires something so we will get that in parent component.
@ahmed_lazrak Жыл бұрын
wa 3la ghm9a
@gabrielgavrilov5205 ай бұрын
"How To Send Data From Child To Parent Component" >proceeds to show how to map a function from a parent to a child thanks for wasting my time
@tejassethi93192 жыл бұрын
This was the best explanation of this concept that I have found on the Internet after 3 hours of Googling. Thank you!