Lifting State Up in React.js in Hindi | Pass Data From Child to Parent in react.js in Hindi

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 102

  • @yoshitajain0812
    @yoshitajain0812  2 ปีที่แล้ว +27

    Hi Guys, today our channel completed one month ❤ and you guys have supported this channel tremendously. Thank you so so so much guys for supporting this channel ❤🤗

    • @dilipdwiveedi1611
      @dilipdwiveedi1611 2 ปีที่แล้ว

      You keep uploading the new videos of only React... Will keep sharing your channel...❤️🙏💐

    • @sunnydhiman2242
      @sunnydhiman2242 2 ปีที่แล้ว

      Ma'am,,, routing ???? link tag is not working bt anchor tag given output..

    • @niteshchaurasiya1531
      @niteshchaurasiya1531 2 ปีที่แล้ว

      Congrats ma'am . Very Helpful videos please create a ecommerce project in react with API.

    • @nawazishali274
      @nawazishali274 2 ปีที่แล้ว

      @@sunnydhiman2242 make sure Link import from react-router-dom and placed to inside link which page you want to move like to="/about"

    • @sunnydhiman2242
      @sunnydhiman2242 2 ปีที่แล้ว

      @@nawazishali274 Sir,, Already done
      Bt it's not working.. only one problem faced when anchor tag used then output is given bt when I used instead of anchor tag ,,link tag and itstead of href " " ,,, to attribute then output is not given only white screen show And errors also not given?? Solution ..

  • @rahulreddy3726
    @rahulreddy3726 ปีที่แล้ว +1

    Thanks got clear understanding now ......easy and stright forword explaination

  • @ravikumawat5731
    @ravikumawat5731 ปีที่แล้ว +1

    Vary nice explain I see many videos in you tube but this one is perfect for learning special for child to parents send data using props .....

  • @cbum3935
    @cbum3935 13 วันที่ผ่านมา

    Way of Explaining things amazing 🔥

  • @coder_astro
    @coder_astro ปีที่แล้ว +5

    Trust me this concept is not as simple as you have made it with your amazing teaching skills. Watched so many videos but couldn't understand this but your video crystal cleared my concept. Tahnk You Yoshita for your efforts!

    • @saranshtomar6460
      @saranshtomar6460 9 หลายเดือนก่อน +1

      But it will be easy if you watch anil Sidhu playlist(React Playlist)

  • @rifatskdev
    @rifatskdev 2 ปีที่แล้ว +1

    Worked thank you alot! you're the best bro liked

  • @shivamkumarsingh1420
    @shivamkumarsingh1420 2 ปีที่แล้ว +1

    Very simple and intuitive Approach . I really like this.

  • @aniksaha8108
    @aniksaha8108 ปีที่แล้ว +1

    Thanks Ma'am this concept is cleared now!

  • @miss__eliza2317
    @miss__eliza2317 ปีที่แล้ว +1

    Awesome explain ❤️

  • @AswiniduttBevara
    @AswiniduttBevara ปีที่แล้ว +1

    Thank you @Yoshita Jain for making us understand the complex topic of react [LIFTING THE STATE UP] so easily.👌👌

  • @KhushbuDharmadhikari
    @KhushbuDharmadhikari 8 หลายเดือนก่อน

    Helpful , thanks for video.

  • @ajinath2151
    @ajinath2151 ปีที่แล้ว

    helpful , thanks for video

  • @kamaludeensiddik3965
    @kamaludeensiddik3965 2 ปีที่แล้ว

    I Really understand your Concepts very well even though i don't know hindi. Thank you So Much..

  • @shivugg
    @shivugg 2 ปีที่แล้ว +1

    Helpful 👌

  • @mandorakannu
    @mandorakannu ปีที่แล้ว +1

    Easiest explanation ❤❤

  • @Ankit-xq3sl
    @Ankit-xq3sl ปีที่แล้ว

    Wowooo, i think now I understood 👍

  • @PROTECHRAHUL
    @PROTECHRAHUL 2 ปีที่แล้ว +1

    Such a straight forward approach Yoshita🙏

  • @digiartpassion8513
    @digiartpassion8513 2 ปีที่แล้ว

    Good job keep it up !!

  • @sumitk8842
    @sumitk8842 ปีที่แล้ว

    Yoshita mam>>>

  • @anujshukla2913
    @anujshukla2913 3 หลายเดือนก่อน

    very helpful video for me

  • @anish_is_here
    @anish_is_here 2 ปีที่แล้ว +7

    Explicit explanation 🙂👍.
    I suggest you should include some concepts such as DOM, VDOM, ES6+ concepts/features, SPA/MPA

  • @subhajitdey135
    @subhajitdey135 6 หลายเดือนก่อน

    so much better than coursera . Thanks di !

  • @RohitYadav-fo3qi
    @RohitYadav-fo3qi 2 ปีที่แล้ว +1

    Thanks a lot ma'am for this video. your explanation is amazing.😊

  • @coding2490
    @coding2490 ปีที่แล้ว

    awesome girl, you are great

  • @sawerasajid4309
    @sawerasajid4309 8 หลายเดือนก่อน

    thank you so much i was struggling alot in this concept thanks alot

  • @काव्यगंगा1062
    @काव्यगंगा1062 ปีที่แล้ว

    Nice

  • @mohdfarman7426
    @mohdfarman7426 2 ปีที่แล้ว

    Nicely explained

  • @mayurpatil2833
    @mayurpatil2833 ปีที่แล้ว

    Thank your ma'am great explanation 😊

  • @rajendertanwar1881
    @rajendertanwar1881 8 หลายเดือนก่อน

    Understood👍 thankyou

  • @aaryanpavvitchhabra9265
    @aaryanpavvitchhabra9265 ปีที่แล้ว

    maam u r the best i love u

  • @sheheryarqazi1006
    @sheheryarqazi1006 2 ปีที่แล้ว

    nice ,

  • @nawazishali274
    @nawazishali274 2 ปีที่แล้ว

    Nice content

  • @mrnabby4178
    @mrnabby4178 ปีที่แล้ว

    Thanks Yoshita you have taught me so many new things.

    • @yoshitajain0812
      @yoshitajain0812  ปีที่แล้ว +1

      ❤️😊

    • @mrnabby4178
      @mrnabby4178 ปีที่แล้ว

      @@yoshitajain0812 Cant thank you enough for your service. May almighty bless you,

  • @KhushbuDharmadhikari
    @KhushbuDharmadhikari 8 หลายเดือนก่อน

    Helpful..

  • @dharmeshgohil9375
    @dharmeshgohil9375 2 ปีที่แล้ว

    awesome

  • @thetechtimes
    @thetechtimes ปีที่แล้ว +1

    Thank you so so so much

  • @saikiran6394
    @saikiran6394 ปีที่แล้ว

    Helpful 🙂

  • @Sujay.Vaidya
    @Sujay.Vaidya 2 ปีที่แล้ว

    You are amazing🤟❤

  • @neerajsharma4808
    @neerajsharma4808 ปีที่แล้ว

    8:15 yr mera bhi same error aara esko resolve kaise kru maine v same code type kiya hai.

  • @hamzasaleem8152
    @hamzasaleem8152 2 ปีที่แล้ว

    Thanks you so much for these videos. It's really helped me. Really means a lot Love from Pakistan :)

    • @yoshitajain0812
      @yoshitajain0812  2 ปีที่แล้ว

      Glad you liked it :)

    • @hamzasaleem8152
      @hamzasaleem8152 2 ปีที่แล้ว

      @@yoshitajain0812 Yes you are doing a great job. Thanks for urdu/hindi tutorial. :)

  • @demonking7496
    @demonking7496 2 ปีที่แล้ว

    Congo 👨‍🔧

  • @jobhikarbefikarrr.638
    @jobhikarbefikarrr.638 ปีที่แล้ว +1

    Yoshita g please improve your recording quality as sound cuts while u slice clips kindly pl dnt mind it's sounds wierd dnt mind yoshita g I m ur regular follower love to watch ur tutriols .so pl improve 🎉n best wishes n good luck for ur upcoming tutriols

    • @yoshitajain0812
      @yoshitajain0812  ปีที่แล้ว +1

      Yes I understand, I am trying to resolve these issues.. learning day by day 🥺
      Thank you for supporting 🫶🏻

  • @PankajPatel-zh8mf
    @PankajPatel-zh8mf 2 ปีที่แล้ว

    Good explanation 🙏🌸

  • @contentshark5122
    @contentshark5122 2 ปีที่แล้ว

    Nice video !!

  • @DigiPandaCompany
    @DigiPandaCompany 5 หลายเดือนก่อน

    If we will use State in parent page how we can do handle where is use maked function with props I want to make that's page jha I used props ho we can do please help

  • @kadirraeen2112
    @kadirraeen2112 ปีที่แล้ว

    Thnxx u mam♥️

  • @zaidi7757
    @zaidi7757 2 ปีที่แล้ว

    Thanks this helps me a lot

  • @Abdul-Wahid-Orakzai
    @Abdul-Wahid-Orakzai ปีที่แล้ว

    simple and to the point;
    i would suggest not to got for projects you may not have time to manage
    short playLists could be more helpful and you may give time
    thanks once again

  • @UNKNOWN-r3u5k
    @UNKNOWN-r3u5k 2 หลายเดือนก่อน +1

    Hi Dii, the way you explained this topic is superb but I have a question that is there anyway that we can pass the data directly from nested child classes to parent class without pass it through middle classes like useContext and contextapi concepts.

  • @mayanksaxena7864
    @mayanksaxena7864 5 หลายเดือนก่อน

    Mam how can you say the parent is accessing the value? We are just passing the function from parent ot child and then the child is calling the function (not parent).

  • @rakeshkumarparida98
    @rakeshkumarparida98 ปีที่แล้ว

    Mam please answer my question.. what if our children component has some UI which we don't want to show or render in parent component then how we can pass the data ?

  • @muhammaduzair6705
    @muhammaduzair6705 2 ปีที่แล้ว

    very helpful :)

  • @abdullahsoomro6238
    @abdullahsoomro6238 3 หลายเดือนก่อน +1

    💡
    In React, data flows in only one direction, from parent components to child components. This is called unidirectional data flow. Parents pass data to children using props, but children can’t send data directly back to the parents. This makes the app’s state more predictable. If you need to communicate from child to parent, you can pass callback functions as props, but the data flow remains one-way.

    And the concept of lifting state up is also not taught correctly.

    "Lifting state up" in React refers to a pattern where you move the state from a child component to its closest common ancestor (usually a parent component) to share that state between multiple child components.
    When two or more components need to share data or synchronize behavior, it's often easier to lift the state to a parent component. The parent component then holds the state, and passes it down to the children as props. This allows the child components to stay in sync, as they get the same state from the parent.
    Here’s a typical example:
    1. The child components don’t manage their own state.
    2. Instead, the parent holds the state.
    3. The children get the state via props and can notify the parent of changes (through callback functions).
    This pattern ensures that data flows in a single direction (from parent to children) while keeping all dependent components in sync with the same state.
    🔗 Reference
    react.dev/learn/sharing-state-between-components

  • @ArushDeepGupta
    @ArushDeepGupta 5 หลายเดือนก่อน

    the error at 8:19 is due to the reason that you haven't give anything in useState( ) parenthesis
    incorrect: const [name, setName] = useState();
    correct: const [name, setName] = useState("");

  • @rishabdutt2600
    @rishabdutt2600 2 ปีที่แล้ว +1

    Mam, just guide me how to use a component multiples times but with different value for ex- i wanna use dropdown button multiples times but want different dropdown options. kindly reply soon as possible. Thank you .

  • @RishiRajxtrim
    @RishiRajxtrim ปีที่แล้ว

    10:05
    Yes, clear to me.

  • @kuldeepkumawat6874
    @kuldeepkumawat6874 2 ปีที่แล้ว

    Faithful video 🙂

  • @DanceAndLife-vy6tj
    @DanceAndLife-vy6tj 2 ปีที่แล้ว

    Hi Yoshita Congratulation ! You did a great job. First time I subscribed a channel for learning react. Last time I give you a suggestion and I could the result in this video. I have few more suggestion. Please let me know If I could tell you.

  • @Ramu-z2w
    @Ramu-z2w ปีที่แล้ว +2

    good explanation, But how to display "Yoshita" or any name which has given by user on browser. When i click on submit button given value in input should be display on browser of parent component.

    • @umairahmedofficial1
      @umairahmedofficial1 3 หลายเดือนก่อน +1

      You have to store data in parent coming from child in a State set that data in the function that coming from child component by using useState()

  • @anuragkasudhan3734
    @anuragkasudhan3734 2 ปีที่แล้ว

    explained so simply!!! can we lift state without using form in child component?

    • @chiranjitdey1430
      @chiranjitdey1430 2 ปีที่แล้ว +1

      Yes you can. A simple button can do the work also. Attaching the code below,
      App.js(parent file)******
      import Student from "./Student";
      import "./styles.css";
      const App = () => {
      const getData = (data) => {
      {data};
      };
      return (

      Props in react


      );
      };
      export default App;
      Student.js(child file)****
      import React from "react";
      import { useState } from "react";
      const Student = (props) => {
      const [name, setName] = useState("Sam");
      const onClick = () => {
      setName("Mike");
      props.getData(name);
      };
      return (

      Hello {name}
      Update

      );
      };
      export default Student;

  • @tejkumar7383
    @tejkumar7383 2 ปีที่แล้ว

    I try same code but merko error show ho rha he page refresh ho jaa ha rha please help me

  • @kasemmuhammad9820
    @kasemmuhammad9820 หลายเดือนก่อน

    thanks

  • @rushisolanke51
    @rushisolanke51 2 ปีที่แล้ว +1

    what if we want to send data from parent to child

  • @snehalgawade-n9u
    @snehalgawade-n9u ปีที่แล้ว

    Hello, Thanks for covering this topic. I have one doubt here, 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?)

    • @nikhilkumarsingh6027
      @nikhilkumarsingh6027 ปีที่แล้ว

      Bhai state bna ke set karwa do fir use karlo parent mein jaha man kare

  • @nithinkottary9578
    @nithinkottary9578 2 หลายเดือนก่อน

    i think presentation container design pattern works lot a better here.

  • @saurabhbarasiya4721
    @saurabhbarasiya4721 2 ปีที่แล้ว

    Please upload full vudeos

  • @techycode2217
    @techycode2217 9 หลายเดือนก่อน

    please make a paylist for react

  • @ramgopalkashyap8266
    @ramgopalkashyap8266 ปีที่แล้ว

    Hello mam please upload some video related to react routing its my humble request from you

  • @sAuraBhTissout
    @sAuraBhTissout ปีที่แล้ว

    kam ni kar rha h mere me

  • @DigiPandaCompany
    @DigiPandaCompany 11 หลายเดือนก่อน

    Could you makes projects of app

  • @karankoli4738
    @karankoli4738 ปีที่แล้ว

    Yoshita mam i am karan koli from maharashtra plzz help to me entry level jobs or any internship for reacts

  • @PravinKumar-qy6vg
    @PravinKumar-qy6vg 2 ปีที่แล้ว

    please make some projects on react

  • @avgGamer662
    @avgGamer662 ปีที่แล้ว

    Hi cutie

  • @naveenkumarkota2090
    @naveenkumarkota2090 ปีที่แล้ว

    Nothing Undertood

  • @mukeshtiwari8872
    @mukeshtiwari8872 5 หลายเดือนก่อน

    I love you mam 😙😙

  • @RatanMaurya-i6s
    @RatanMaurya-i6s ปีที่แล้ว +1

    Hi if you have time please uploads video about how to call firebase function in react js for more info please contact me

  • @AayatKhan-ok3tm
    @AayatKhan-ok3tm ปีที่แล้ว

    Nice