#39: How I turn 100 lines of code in just 2 lines to Complete Our Login Form in React in Hindi 2020

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии • 158

  • @ThapaTechnical
    @ThapaTechnical  4 года назад +14

    hey Guys, Today we gonna see something best of ReactJS. No, I am not kidding. It's true. How only two lines of codes save our 100 lines of codes.

    • @makeexameasy3395
      @makeexameasy3395 4 года назад

      Bhai kya aap blogger Templet banna sikha sakte ho

    • @Abhishek-bo9ge
      @Abhishek-bo9ge 3 года назад +2

      how works [ name ] = value, in this code Please tell me

    • @ankitpare676
      @ankitpare676 2 года назад +1

      @@Abhishek-bo9ge object destruction

  • @humanbeing9106
    @humanbeing9106 4 года назад +5

    i know air video banane me bahot time lagta hai mahadev aapko bahot kush rakhe or kabhi financial problem na ho aapko

  • @palakgupta9471
    @palakgupta9471 2 года назад +5

    I must say, at starting of the form I got stuck, but the way you continued to explain small parts is commendable.
    thanks, it helped a lot...

  • @abhisheksagar3681
    @abhisheksagar3681 3 года назад +11

    [name] takes the value of which is assigned in that input tag...if it's different from the useState obj key value so it makes a new key in useState obj....make sure you have to write the same name in the input tag as useState key...

  • @RakeshKeReviews
    @RakeshKeReviews Год назад +3

    This is best series. In starting I can not understand React but now it is 💣BOOM GUYS 💣 very easy for me.🧨❤💣

  • @mohsinbohra1174
    @mohsinbohra1174 4 года назад +8

    Redux, Reducer, State Management(E-commerce website using React Redux)... Pretty much.. if you can make any advance level of video. Your explanation is so good.

  • @MaxProgramming
    @MaxProgramming 4 года назад +3

    I just jumped to this video when I read the title from the notification. Very catchy titles lol.👍

  • @ArtbyAkki786
    @ArtbyAkki786 7 месяцев назад

    Sir main bhut confuse thi [name] kyu use kiya hai thanks sir doubt solve krne ke liye you are the best teacher for react ❤

  • @VIJAY_B_1998
    @VIJAY_B_1998 Год назад

    your explanation methods are really awesome big brother ❤

  • @MrKapbat
    @MrKapbat 4 года назад

    This is what I was looking for. But do remember that is not at all login form :)

  • @programmer1783
    @programmer1783 4 года назад

    thanks bro , I didn't understand
    ... then i watch video again and i understand greatly. :-)

  • @vinitsharma6191
    @vinitsharma6191 3 года назад +4

    what is the use of value attribute 'value={fullName.fname}' in input element because whether I remove it from the code however the code works fine.

  • @walkalonearvind
    @walkalonearvind 4 года назад

    bahut sandar tha ye vinod bhai

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 года назад +2

    That's the way of coding ✌🏻

  • @ganeshbhadane346
    @ganeshbhadane346 3 года назад +1

    Hello Gyus, check the meaning of
    return{
    ...prevalue
    [name]:value
    Vinod trying to explain like below example :
    const animalSounds = {cat: 'meow', dog: 'bark'};
    const animal = 'lion';
    const sound = 'roar';
    {...animalSounds, [animal]: sound};
    The result will be
    {cat: 'meow', dog: 'bark', lion: 'roar'};

    • @SaiSarthik
      @SaiSarthik 3 года назад

      why animal is in square brackets

    • @deepanshuchauhan1116
      @deepanshuchauhan1116 2 года назад +1

      @@SaiSarthik uski value get krne ke lye agar aap sirf animal likhoge toh aapko result animal he milega lion nahi islye bracket use kiya taaki uski value mil sake lion

  • @alkesh.jethava
    @alkesh.jethava 4 года назад

    Jabardast video sir..
    U r awesome

  • @newview9930
    @newview9930 4 года назад +1

    Bhai aap bahut aage tak jayegen ....

  • @rajat-s-kale1771
    @rajat-s-kale1771 Год назад

    your teaching is awesome

  • @dailyhacks7996
    @dailyhacks7996 4 года назад +6

    Hello Thapa ,
    I have one confusion
    ...preValue,
    [Name]: value;
    Why we are using [ ] brackets
    Explain these

  • @SongsetImage
    @SongsetImage Год назад

    Thank you so much sir yeh video best laga

  • @siddheshphadke3719
    @siddheshphadke3719 4 года назад +1

    Hi thapa, ur big bigger biggest fan

  • @sourabhthorat9550
    @sourabhthorat9550 3 года назад +1

    Why you did not click on "submit me" through out video

  • @AvishFlow-is7on
    @AvishFlow-is7on Год назад

    Thank you very much brother!

  • @priyakarn5191
    @priyakarn5191 2 года назад

    awesome explanation thank you so much sir

  • @shoyebshoyeb8816
    @shoyebshoyeb8816 3 года назад

    You are greate web teacher

  • @zafarhussain8273
    @zafarhussain8273 3 года назад

    bhai awsome ho yaar

  • @usmannewton5361
    @usmannewton5361 4 года назад

    Great yar. Thanks

  • @shahrukhtemori7502
    @shahrukhtemori7502 4 года назад +1

    why are we passing the 'name' inside the brackets ? for example [name] : value, I dint get this part
    sir please reply to this.

    • @PranathNaik
      @PranathNaik 4 года назад +3

      const foo = 'bippity';
      const obj = {
      [foo]: 'boppity'
      }
      console.log(obj) // { bippity: 'boppity' }

  • @pkg874
    @pkg874 4 года назад +1

    then wat the use of the submit button

  • @deepakaashrmiya859
    @deepakaashrmiya859 2 года назад +1

    bro 100 line samaj agayi lakin 2 line nai aaye
    ksm kaisa kar rahi ha do line samaj nai aaaya

  • @tofikpardeshi2132
    @tofikpardeshi2132 4 года назад

    sir really very usefull video thanx sir 👌

  • @pratikpalanpure9352
    @pratikpalanpure9352 4 года назад

    Awesome 😊

  • @divyanshisharma7695
    @divyanshisharma7695 3 года назад

    In input field i wrote< input type="text" placeholder ="enter name" but my placeholder is not visible and if i write type="number" placeholder is visible. Why this is happening???

  • @vikaschauhan3138
    @vikaschauhan3138 3 года назад

    Ye awesome tha

  • @entertainmentcorner7084
    @entertainmentcorner7084 5 месяцев назад

    good concept janu

  • @av1shek_ps
    @av1shek_ps 4 года назад

    Please add some more small project related videos on react js like your "Todo List App project". Thanks video was nice and title of video was :-)

  • @pritrojivadiya5021
    @pritrojivadiya5021 3 года назад

    All doubts clear...

  • @digitaldeveloper7635
    @digitaldeveloper7635 3 года назад

    How to make the button function?
    When I click on the button and the data stored..

  • @pradyutbasuri7271
    @pradyutbasuri7271 4 года назад

    why i am using curly braces when returning inside the input event. is because the output should be in object format ?

    • @aniketbhalla1521
      @aniketbhalla1521 3 года назад

      Yes you guessed right, because that hook variable, named fullname, which we want to update using setFullname(), is an object. So in order to update that object hook variable, we need to write {}.

  • @mdmojammelhossen8030
    @mdmojammelhossen8030 4 года назад

    Great..

  • @TheGeekyAbhi
    @TheGeekyAbhi 4 года назад +1

    i am 2nd
    cause first comment is yours😂

  • @namanmalhan4551
    @namanmalhan4551 3 года назад

    Sir, this playlist have 93 videos but now it have only 85 videos. Why did you delete 8 videos from this playlist???

  • @ElectronicsInside
    @ElectronicsInside 3 года назад

    Could you pls tell me if I want to do the same thing using onsubmit then what should I do?

  • @prash0202
    @prash0202 3 года назад +3

    hello sir, please is code ko ek baar thoda aur detail me explain kar dijiye
    return{
    ...prevalue
    [name]:value

    • @rohitsahu1443
      @rohitsahu1443 3 года назад +1

      our primary concern is to create a new key:value pair having same "key" as our fname:" " so that we can replace/modify fname:" " with fname: " user input "
      with "[name]:value' we are creating a new key:value pair which later evaluated as fname:"user input" for the first input field
      in order to evaluate a key name we must enclose it within square brackets
      so here in place of "[name]" we get "fname" which is the value of name attribute in first input field.
      now we have 2 key value pairs with same key name (fname: " " and fname:" user input),here fname: " " gets modified/replaced by fname: "user input" and the function finally returns
      {
      fname: " user input ",
      lname: " ",
      email: " ",
      phone: " ",
      }
      hence when we try to access {fullName.fname} we get the modified/replaced value of "fname".
      please note:the value of name attribute and object keys must be same.
      I am new to react and not 100% sure about the explaination but this might be the correct explaination for that part.

    • @prash0202
      @prash0202 3 года назад +1

      @@rohitsahu1443 Thanks Rohit for the explanation. I am trying to understand your explanation!

    • @tapaskumarsahu501
      @tapaskumarsahu501 3 года назад +1

      @@rohitsahu1443 Hi...

    • @rohitsahu1443
      @rohitsahu1443 3 года назад

      @@tapaskumarsahu501 hello

    • @tapaskumarsahu501
      @tapaskumarsahu501 3 года назад

      @@rohitsahu1443 Thanks for the reply bro... I need ur help in learning react how can I contact you, can u give me any social media id

  • @liaqatkhan2600
    @liaqatkhan2600 3 года назад

    Sir is form ki values submit ni ho rhi. mean k submit krny pe values input box se nikl kr dosri jaga store kesy hon gi

  • @deepakmathur4218
    @deepakmathur4218 3 года назад

    bhaiya return Mei aapne parenthesis use Kyo nahi Diya pls reply

  • @tausifkovadiya1810
    @tausifkovadiya1810 3 года назад

    Great Series Thapa Sir. I Want to know, how can I reset the form after submit ? I mean I want to show result at top and input fields to be reset.

    • @ayonsinha2075
      @ayonsinha2075 Год назад

      you can use settime and event.preventDefault

  • @farhatmahi4509
    @farhatmahi4509 2 года назад +1

    What does this line of code means?
    const {name, value} = event.target

    • @sanasajid2681
      @sanasajid2681 9 месяцев назад

      Destructing it will name and value from event.target

  • @rahulnautiyal3381
    @rahulnautiyal3381 4 года назад

    Thank you so much sir❤😍

  • @anikakesarwani1192
    @anikakesarwani1192 2 года назад

    your video is really helpful sir
    how to get value from multiple checkbox please answer

  • @robinmathew8828
    @robinmathew8828 3 года назад

    Hi how to login with two user and after that it has redirect to home page

  • @jk-sm6qr
    @jk-sm6qr Год назад

    ThankYou!!

  • @ArunYadav-mb5cv
    @ArunYadav-mb5cv 3 года назад

    sir prevalue define bhi nhi us m data kha s aayega??? plzz tell me

  • @deepanshusingh2352
    @deepanshusingh2352 4 года назад

    bhai ye wali video m bahut saare doubts aa rhe hain ... ratta lagana padega

  • @covidnineteen5249
    @covidnineteen5249 4 года назад

    Sir wait l am confused...return () k saath use karte they na . Though ye return {} kya hai . And difference kya hai?

    • @malikalyan3201
      @malikalyan3201 4 года назад +4

      pehly return me jsx ka code likhna hota tha to () ye use krty thy pr is baar return me array of objects use ho raha yaani j.s ka code to is liye curly braces use ki

  • @anshumaan454
    @anshumaan454 3 года назад +2

    Hey bhai, thoda yeh samjha sakte ho, nai samjh arha, plsss
    At video time "9:51"
    return{
    ...preValue,
    [name]:value,
    };

    • @abhisheksah1867
      @abhisheksah1867 3 года назад +1

      hey if you are still waiting for the reply:
      basically what is happening is the value is nothing but the value that you get from typing inside the input field and you are assigning that value to[name] but now what this [name] is ?
      basically you have given the name as a prop inside the input tag, now lets take an example that you have written in fname input field so now the name that will be passed on Onchange will be 'fname' so you are saying [fname] : value that you have typed now inside the return{
      ...preValue,
      [name]:value,
      };
      you are actually taking the whole value of preValue and saying give me everything from that object inside useState and also assign the [fname] : value to it. (this is from the eg we took where the value is nothing but the value you typed) so it will get updated, actually you can remove the value property from you input tag and still your code will work.....
      thanks regards MR ...Sah

    • @anshumaan454
      @anshumaan454 3 года назад +1

      @@abhisheksah1867 thank you so much brother 👍

    • @anshumaan454
      @anshumaan454 3 года назад

      @@abhisheksah1867 bro, you explained it beautifully, thanks for that. After reading ur explaination I understood that name: value will be updated after comparing ...preValue with [name]:value. I mean to say the input field which is being typed will get identified and give value ("whatever we type in the input field").
      Eg: if we type 12345 in the phone field, then it'll give name as phone and value as number like phone:12345 ,then name: value will be updated/replaced accordingly.
      Bt my new doubt is why this [name] written inside square bracket, is there any specific syntax are we following here? what is the meaning of this [ ].
      I know without [ ] bracket, the name : value is behaving like new property. Then why specifically this big [ ] bracket in the name?

    • @abhisheksah1867
      @abhisheksah1867 3 года назад

      @@anshumaan454 I think that is array destructuring

  • @yomeaftab1276
    @yomeaftab1276 3 года назад

    I'm getting error : object are not vaild as a React child (found: object with key{fullName,pass,email}).if you meant to render a collection, use an array instead

  • @sufisufyan6489
    @sufisufyan6489 4 года назад

    zabardast

  • @musiclovers8488
    @musiclovers8488 3 года назад

    How can we apply condition while checking ??
    Between return ??

  • @okeyshourovroy2769
    @okeyshourovroy2769 4 года назад

    Very useful video

  • @akbees235
    @akbees235 3 года назад

    I am disappointed this is one of my fav channel
    This playlist is a mess almost all videos is related to the previous one
    I try to follow it from begining too many repetition and the videos has not been wrap up correctly
    If the playlist is well classified it would be one of the best playlist on react the way u explain is gud though

  • @hussainmehdi-oy2ik
    @hussainmehdi-oy2ik Год назад

    how to use the select and get these values.

  • @vishaldesai1888
    @vishaldesai1888 3 года назад

    HI Vinod yahi same chize hum onClick pe kaise achieve kar sakte hai?

    • @vishaldesai1888
      @vishaldesai1888 3 года назад

      Aapane jaise bataya waha tak achieve karliya now the same thing onClick pe kaise achieve

  • @vaibhavjain4934
    @vaibhavjain4934 4 года назад +3

    Email template pe video Bana do yar kitne Baar comment Karu

  • @angulardesign7412
    @angulardesign7412 4 года назад

    Learning angular which is best react or angular i know spring boot

  • @rkboy7628
    @rkboy7628 3 года назад

    video ke end me codding part ko screen par clear to dikha do yaar..

  • @webcode6071
    @webcode6071 4 года назад

    Awesome

  • @rajpandey-jl3jl
    @rajpandey-jl3jl 11 месяцев назад

    Please share the Git hub link for React JS project.

  • @sarojkumarrout5981
    @sarojkumarrout5981 4 года назад

    Hello sir , can you plz share a tutorial on table booking procedure in hotels ?

  • @achin711
    @achin711 3 года назад +2

    in the return block ...previous is destructuring its understandable but how does [name]:value works? Please explain.

    • @muhammadfarooq8470
      @muhammadfarooq8470 Год назад

      my friend it is because we do not want to add a field in fullName (object) we just have to manipulate the created fname and lname inside the fullName (object)

  • @sameerahmad-wd2zw
    @sameerahmad-wd2zw 3 года назад

    Thapa sir how we can add file,i need to add image

  • @rajbannasa7662
    @rajbannasa7662 3 года назад

    thank you so much sir

  • @AkhileshYadav-lv3kh
    @AkhileshYadav-lv3kh 2 года назад

    Thank you sir

  • @noaakshay
    @noaakshay 4 года назад +3

    ...previousvalue,
    [name]:value
    please any one reply me for this im'nt understanding this part

    • @shankarpokhrel368
      @shankarpokhrel368 4 года назад +1

      as far as i have understood we are assigning the new value to the object to be changed but i dont understand why name is in square bracket?

    • @PranathNaik
      @PranathNaik 4 года назад +3

      const foo = 'bippity';
      const obj = {
      [foo]: 'boppity'
      }
      console.log(obj) // { bippity: 'boppity' }

  • @muhammadahsanriaz4568
    @muhammadahsanriaz4568 4 года назад

    Amazing nice

  • @Jatinder_Kaur_Angel
    @Jatinder_Kaur_Angel 3 года назад

    where i can get this code sir .

  • @abhijeetbasfore6816
    @abhijeetbasfore6816 4 года назад

    Bhaiya kya app login Form ka entire code provide kara doge?

  • @sushantapatra749
    @sushantapatra749 4 года назад

    how to save form data in MySQL database?

  • @tarundogra3519
    @tarundogra3519 3 года назад

    how to validate gender and option field

  • @CoderBhavy
    @CoderBhavy 4 года назад

    How to set cookies for my full website

  • @anshumaan454
    @anshumaan454 3 года назад

    Anyone thoda yeh samjha sakte ho, nai samjh arha, plsss
    At video time "9:51"
    return{
    ...preValue,
    [name]:value,
    };

  • @TechPs_pankaj
    @TechPs_pankaj 3 года назад

    How to upload files using this method ??

  • @arsalanahmad7842
    @arsalanahmad7842 3 года назад

    sara code b kahi show kr dia kro yrr bht difficult huva is ko change krna

  • @zafarhussain8273
    @zafarhussain8273 3 года назад

    sir how to use formik for form

  • @surajgupta7900
    @surajgupta7900 3 года назад

    Sir plz make a video on react form validation

  • @AmitKumar-eu8me
    @AmitKumar-eu8me 3 года назад

    Sir,iska code kaha milega

  • @aamirsaleem5294
    @aamirsaleem5294 4 года назад

    osm

  • @krushnamohakud8669
    @krushnamohakud8669 4 года назад

    dude make a video where the data stored in local m/m or db

  • @rajusinghrajput4442
    @rajusinghrajput4442 4 года назад

    Sir ap ak video iski bhi banaiye na how to create anti csrf token in login page sir impossible condition ke sath
    Please sir muje iski bohut jarurat he

  • @subratopatnaik6361
    @subratopatnaik6361 4 года назад

    [name]: value
    Explain this I can't find it on Google

    • @ArpitJain_AJPlays
      @ArpitJain_AJPlays 4 года назад

      to every name eg fname, lname,email,phone its setting the value like [fname->fullName.fname, lname-> fullname.lname, email-> fullName.email, phone-> fullname.phone]

  • @rohitsahni7462
    @rohitsahni7462 4 года назад

    Sir please upload video life cycle method React.

  • @RameshKumar-d4o8x
    @RameshKumar-d4o8x 8 месяцев назад

    how to get source code

  • @1Bipul
    @1Bipul 4 года назад

    ❤️

  • @mallikarjunakp835
    @mallikarjunakp835 4 года назад

    Plz create chat box using js and jQuery

  • @RameshKumar-d4o8x
    @RameshKumar-d4o8x 8 месяцев назад

    anyone can tell me the steps of source code plz

  • @nri_raj
    @nri_raj 3 года назад

    Ek line me kaise hoga

  • @newview9930
    @newview9930 4 года назад

    Bhai Aap Comments Dekh Rare Hai Na
    Please reply me.

  • @muhammadjawad9341
    @muhammadjawad9341 3 года назад +1

    @Thapa_Technical Thanks : ).

  • @noaakshay
    @noaakshay 3 года назад

    bhai code explain karo bhai please i don't understood

  • @JyotiKumari-xl6cy
    @JyotiKumari-xl6cy 4 года назад

    www.remove.bg/
    Is website ko coding ke throw kaise bna sakren hai bhaiya ji
    So please explain me