Adding Alerts to Login, Signup & Notes Component of iNotebook | Complete React Course in Hindi #71

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • In this react course, we will see how to learn react using projects.
    This is going to be a project-based course full of real-world react projects.
    All the source code and other material will be uploaded on codewithharry.com as and when available!
    ►Checkout my English channel here: / @programmingwithharry
    ►Instagram: codewithharry
    python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python[15 Hr] - • Python Tutorial For Be...
    Python Advance[3.5 Hr] - • Python Programming Cou...
    Python[1 Hr] - • Learn Python In Hindi ...
    Python[2 Hr] - • Python Tutorial In Hin...
    Python[15 Min] - • 15 Minute Python Tutor...
    JavaScript[1 Hr] - • JavaScript Tutorial
    C[1.3 Hr]- • C Programming Tutorial...
    php[1 Hr] - • Learn Php In One Video...
    php[2.3 Hr] - • Php Tutorial for Begin...
    php[Project]- • Login And Registration...
    HTML[30 Min] - • HTML 5 Tutorial For Be...
    CSS[8.5 Hr] - • CSS Tutorial In Hindi ...
    CSS[1.4 Hr] - • CSS 3 Tutorial For Beg...
    Wordpress[3.2 Hr] - • How To Make a WordPres...
    Angular[2 Hr] - • Angular Tutorial in Hindi
    Java[2.3 Hr] - • Java tutorial in hindi 🔥
    Web Scraping[1 Hr] - • Web Scraping Tutorial ...
    MongoDB[2 Hr] - • MongoDb Tutorial For B...
    Numpy[1 Hr] - • Numpy Tutorial in Hindi
    Android Dev[12 Hr]- • Android Development Tu...
    Linux[1 Hr] - • Linux Tutorial For Beg...
    JQuery[1.1 Hr] - • jQuery Tutorial For Be...
    Git and GitHub[1.1 Hr] - • Git & GitHub Tutorial ...
    ►Complete course [playlist]:
    React - • React Js Tutorials in ...
    Python- • Python Tutorials For A...
    OOP Python- • Object Oriented Progra...
    Java - • Java Tutorials For Beg...
    JavaScript- • JavaScript Tutorials I...
    PHP- • PHP Tutorials in Hindi
    C- • C Language Tutorials I...
    C++- • C++ Tutorials In Hindi
    Git & GitHub- • Git and GitHub Tutoria...
    Android Dev- • Android Development Tu...
    Python GUI- • Python GUI: Tkinter Tu...
    Web Development- • Web Development Tutori...
    Python Django - • Python Django Tutorial...
    Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
    Data Structure and Algo - • Data Structures and Al...
    Python Practice programs - • Python Practice Progra...
    Basic Python Programs- • [Hindi] Basic Python P...
    General Python Errors- • [Solved] General Pytho...
    PHP chatroom- • Realtime PHP Chatroom ...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular) - www.codewithha...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    Twitter - / haris_is_here
    Comment "#HarryBhai" if you read this 😉😉

КОМЕНТАРІ • 139

  • @namansjain3325
    @namansjain3325 3 роки тому +4

    This course are so helpful to me
    You are the only one who explains neatly I have seen other videos but they were not that understandable but your videos are so helpful
    Thank you😃

  • @2010ramashka
    @2010ramashka 2 роки тому +8

    Dear Harry everything is good but(ALERT SHOULD GET RESPONSE MESSAGE FROM DATABASE NOT JUST ON BUTTON CLICK).if problem in database connection or other problem then in anyway user will get alert messages on button click that like (user is deleter but in fact no user is deleted),thanks

    • @aaqib_aj
      @aaqib_aj 2 роки тому

      Yes, good point.

  • @yogeshyts
    @yogeshyts 3 роки тому +1

    i cant believe ki mene ye bina apki video dekhe implemnt kr diya
    this react course is helpful

  • @tehniatmirza1439
    @tehniatmirza1439 2 роки тому

    yes completed the task of displaying alert on edit and delete button. Thank you so much harry bhai. Your course is amazing

  • @swatimaurya9405
    @swatimaurya9405 3 роки тому +6

    I buy a react course form udemy and watch his video for knowledge 😅😊seriously u r amazing sir, please always make content for us and leave long 😊😊

  • @siddiqajamadar2283
    @siddiqajamadar2283 3 роки тому +3

    Best teacher ever. Thank you so much bro

  • @the-abhishek-yadav
    @the-abhishek-yadav 3 роки тому +5

    1.8 Million subscribers ki badhaiyan Harry bhai 💙🎉

  • @kirtiiyer490
    @kirtiiyer490 3 роки тому +3

    2 videos in a day, harry is on fire 🔥🔥🚒🚒

  • @tehniatmirza1439
    @tehniatmirza1439 2 роки тому +4

    Harry bhai when user press the delete button there should be some kind of Modal dialog box should be open in which there is some kind of warning that "you are going to delete this note. Are you sure? When user press yes then that particular note should be deleted otherwise not. Please add this functionality too. Thanks in advance

    • @aaqib_aj
      @aaqib_aj 2 роки тому

      Good suggestion. Do this as a task.

  • @MdMasum-rg6zi
    @MdMasum-rg6zi 4 місяці тому +1

    we can pass show alert props in notestate which will make easier to show alert on crud operation of notes

  • @akshynagwnshi479
    @akshynagwnshi479 3 роки тому +1

    Sir Mai Aapki video dekhna Abhi Abhi suru kiya hu and Aapki video kafhi achhi hai and Mai aapka bahot NDA fan ho gya hu tnx sir ir aap esi or video bnaaiye tnx sir

  • @Niteshyadav-os1zl
    @Niteshyadav-os1zl 3 роки тому +1

    Hello harry Bhaiya big salute

  • @shubhamyadav-pf6bv
    @shubhamyadav-pf6bv Рік тому +1

    We can also use sweetalert npm package for showing laert messages.

  • @thegreatagrawal7288
    @thegreatagrawal7288 3 роки тому +12

    Place make javascript in one video of 15 hours

  • @proprogrammers1957
    @proprogrammers1957 3 роки тому

    bhai bahut achi playlist. ma bahut kuch sikh raha hu. Thanks

  • @TheAaditya007
    @TheAaditya007 2 роки тому

    Thanks Code With Harry for this React Mern Stack Course.

  • @codingboi1306
    @codingboi1306 3 роки тому

    You is the best teacher in the world

  • @muhammadahmedriaz1166
    @muhammadahmedriaz1166 2 роки тому +1

    thank you so much. I earned 100$ in one day even though I was on your 65th video. ❣

  • @hritik8865
    @hritik8865 3 роки тому

    Finally you are back great

  • @mythtrimysterygaming3061
    @mythtrimysterygaming3061 3 роки тому +1

    I really like your video Harry Bhai

  • @sahilpunia2122
    @sahilpunia2122 3 роки тому +1

    Harry Bhaiya OP

  • @thedevnoteyt
    @thedevnoteyt 3 роки тому +1

    Harry bhai ❤️🔥😀

  • @shivanshchouhan614
    @shivanshchouhan614 3 роки тому

    2 min me
    Majja hi aagya harry bhai

  • @RahulKumar-dt9iy
    @RahulKumar-dt9iy 2 роки тому

    Harri bhaiii plz make a video on signup and Login validation

  • @ankanderia4999
    @ankanderia4999 3 роки тому

    Harry bahiya op bolte 🔥🔥

  • @pushpabhandari619
    @pushpabhandari619 3 роки тому

    Thank you harry sir

  • @deveshkhandelwal5522
    @deveshkhandelwal5522 10 місяців тому +1

    why did we have to use destructuring to get showalert function in home.js but need not use it in login and signup components??
    can someone explain that

    • @vypw3p634
      @vypw3p634 10 місяців тому

      your is code is working while using the alert
      If soo please share the code

  • @jyotiprakasmallick5333
    @jyotiprakasmallick5333 3 роки тому

    Sir can you make a video on communication Technology plz.

  • @sameerhussain2579
    @sameerhussain2579 3 роки тому +2

    Love from Pakistan Harry

  • @MrChauhanjaved
    @MrChauhanjaved Рік тому

    Thanks

  • @arpangoyal316
    @arpangoyal316 3 місяці тому

    Which Playlist should i follow Chai aur code or Code with harry????

    • @kshitij.rajvanshi.9
      @kshitij.rajvanshi.9 2 місяці тому

      both.. kuch samaj nhi aye toh chai aur code ke pass chale jao.. ya kisi ke bhi pass chale jao

  • @Mr_X_FIFA
    @Mr_X_FIFA 3 роки тому +3

    I've completed upto lecture 5 of c++ from your course.
    Am I now able to solve problems on hacker Earth/rank basics?
    Because I find it hard while solving.

    • @Mr_X_FIFA
      @Mr_X_FIFA 3 роки тому

      @Sahil Gupta there are some topics on hacker rank named input/output, hello world ,data types and basics of these is taught in the first 5 lectures so I am in little bit confusion that those questions should have been be solved by me.
      But when I saw questions then they ask me to answer hello world in printf format (or whatever 😅) but this is not yet discussed in these lectures.

    • @Mr_X_FIFA
      @Mr_X_FIFA 3 роки тому

      @Sahil Gupta Read the above one and then please clear my doubts, please.

  • @armaandhingra9636
    @armaandhingra9636 2 роки тому +2

    filled the signup form full and even if the confirm password is not same as password, it is creating account .. surprised that no one noticed !!!!!!!

    • @prajjwaldubey721
      @prajjwaldubey721 2 роки тому

      yes u r right

    • @rajavjain1934
      @rajavjain1934 Рік тому

      //copy the code in SignUp form and don't forget to the change the port no.
      //use this for for checking password and confirm password are same or not---------
      const handleSubmit = async (e) => {
      e.preventDefault();
      if (credentials.password === credentials.cpassword) {
      const response = await fetch("localhost:2000/api/auth/createuser", {
      method: 'POST',
      headers: {
      'Content-Type': 'application/json'
      },
      body: JSON.stringify({ name: credentials.name, email: credentials.email, password: credentials.password })
      });
      const json = await response.json();
      console.log(json);
      if (json.success) {
      localStorage.setItem('token', json.authtoken)
      props.showAlert("Account Created Successfully", "success")
      navigate("/");
      }
      else {
      props.showAlert("Email Already exists !!! Try with Signing up", "danger")
      }
      }
      else {
      props.showAlert("Confirm Password does not match", "danger")
      }
      }

  • @drift-doitrightthefirsttim4876
    @drift-doitrightthefirsttim4876 3 роки тому

    Is there any tutorial on if login in react project with username and password then it will automatically logged in in wordpress using sso ?

  • @Gymbrozz99
    @Gymbrozz99 3 роки тому +2

    first
    Bhaiya me first hu is baar

  • @ncv-nocopyrightvideos4475
    @ncv-nocopyrightvideos4475 3 роки тому

    nodejs ki playlist harry bhai😁😁

  • @neerajhiranpura1408
    @neerajhiranpura1408 3 роки тому

    Hello sir, mujhe apni app server pr upload krni h. Konsa cheap rhega or kitna usme free storage rhega. Plz reply krna. Plz plz.

  • @y.morales6898
    @y.morales6898 Рік тому

    Esta bien muchas gracias

  • @ProgrammingNCodingWithHarsh

    code with harry come with sundeep maheshwarri!

  • @abhaynamdeo7686
    @abhaynamdeo7686 3 роки тому +1

    Hello Harry bhai,
    I tried to make the alert by using the context api, but i failed can you guide us to make the alert by using context api

    • @manavdixit3355
      @manavdixit3355 2 роки тому

      Create the state for alert in context and pass
      Alert and setAlert in value of context and use it to change value of it

    • @uditprasadmishra5
      @uditprasadmishra5 Рік тому

      @@manavdixit3355 tried the same
      const showAlert = (msg, alertType) => {
      console.log("message", msg);
      setAlert((previousState) => {
      return { ...previousState, message: msg, type: alertType };
      });
      console.log("Alert", alert);
      setTimeout(() => {
      setAlert(null);
      }, 1500);
      };
      its not updating the alert state

  • @whatmagic805
    @whatmagic805 3 роки тому

    harry bhai

  • @Krishna._.Chaturvedi_03
    @Krishna._.Chaturvedi_03 3 роки тому +1

    HI HARRY YOU ARE FROM ODA CLASS

  • @whatmagic805
    @whatmagic805 3 роки тому

    how to make games for unity or unreal? which language we have to learn for unity and unreal

    • @chillu420
      @chillu420 Рік тому

      c sharp for unity and c++ for unreal

  • @whatmagic805
    @whatmagic805 3 роки тому

    can you make gaming course for unity??

  • @rishabhpandey-cse5thsem-453
    @rishabhpandey-cse5thsem-453 3 роки тому

    😭😭😭😭Sir 1 problem in c sir c program m jab m scanf function use kerk run ker raha toh vo input nahi raha but m jab terminal se run kerwa raha ho toh run ho raha help🤔🤔🤔🤔🤔🤔🤔🤔🤔

  • @yogeshyts
    @yogeshyts 3 роки тому

    agr kisi ka limited infinte call type ka koi error a rha h to
    Noteitem ke arrow function pe dhiyan dena

  • @codeyourdreams5894
    @codeyourdreams5894 3 роки тому

    Nice

  • @srijanprivateiti8356
    @srijanprivateiti8356 2 роки тому +1

    0:33 , Android messaging tone 😂

  • @aloneshikariyt
    @aloneshikariyt 3 роки тому

    @CodeWithHarry Sir ko bhi login karega uaka I'd password kha safely store hoga

  • @Sai___Ram1919
    @Sai___Ram1919 2 роки тому

    Hi All- i do not see git hub code after video 70. can anyone please post the link to access code. Thank you

  • @MrDheeraj1233
    @MrDheeraj1233 5 місяців тому

    Hi Harry , Can you please provide github source code for this application

  • @tanyanebhwani
    @tanyanebhwani 4 місяці тому

    jab server down hoga,tab ye bhi to message aana chahiye ki danger:internal server error

  • @itsmytechnology9285
    @itsmytechnology9285 3 роки тому +1

    🔥🔥🔥

  • @ajmal4917
    @ajmal4917 3 роки тому

    User blance ksy save hoga button se

  • @Sumonms
    @Sumonms 3 роки тому +1

    Thumbnail kaha hain bhai!!

  • @hamzarajpoot8388
    @hamzarajpoot8388 3 роки тому +1

    Heart phanko Harry bhi

  • @kalyanikar6599
    @kalyanikar6599 3 роки тому

    Harry Oppppppppppp

  • @devangmathur5809
    @devangmathur5809 2 роки тому

    Anyone plz tell How can I get Username on the notes page on Frontend?

  • @namanchoudhary2501
    @namanchoudhary2501 2 роки тому

    bro maine khud se alert ke liye context bana liya

  • @naitikagarwal5436
    @naitikagarwal5436 3 роки тому +1

    👌👌👌

  • @adityachakre4913
    @adityachakre4913 3 роки тому +1

    ❤️

  • @Moreynium
    @Moreynium 2 роки тому +3

    Showing alerts for Login/signup was fine, because we were getting those alert messages from our API call. Bro why you didn't use the same for showing alerts for all notes activities? Those who want to get ADD/EDIT/DELETE alert messages from server side, first give 'showAlert={showAlert}' prop to noteState.js (contextAPI) which is in app.js and then extract the message form response.json which we get in every API call in noteState.js. like this ===>
    const serverResponse = await response.json();
    if (serverResponse.success) {
    props.showAlert(`${serverResponse.message}`, 'success');
    } else {
    if (serverResponse.message === undefined) {
    props.showAlert(`Oops unable to update your note`, 'danger');
    } else {
    props.showAlert(`${serverResponse.message}`, 'danger');
    }
    }

    • @ANIKETBHOITE-wp5mh
      @ANIKETBHOITE-wp5mh Рік тому +1

      yes correct. I added try catch block in notestate.js and based on that I was doing alert but your's is better and simple . Idk why I was making things difficult for myself🙃

    • @mashalkhan7699
      @mashalkhan7699 Рік тому +1

      WEll done yaar i was lookign for same thing

    • @gagandeepsingh490
      @gagandeepsingh490 Рік тому

      its not working for me it always goes in else condition can you please explain 1 time more

    • @Moreynium
      @Moreynium Рік тому

      @@gagandeepsingh490 code please?

    • @gagandeepsingh490
      @gagandeepsingh490 Рік тому

      @@Moreynium const editNote = async (id, title, description, tag) => {
      const response = await fetch(`${host}/api/notes/updatenote/${id}`, {
      method: "PUT",
      headers: {
      "Content-Type": "application/json",
      "auth-token": localStorage.getItem('token')
      },
      body: JSON.stringify({ title, description, tag }),
      });
      getNotes(response.json)
      const serverResponse = await response.json();

      if (serverResponse.success) {
      props.showAlert(`${serverResponse.message}`, 'success');
      } else {
      if (serverResponse.message === undefined) {
      props.showAlert(`Oops unable to update your note`, 'danger');
      } else {
      props.showAlert(`${serverResponse.message}`, 'danger');
      }
      }
      }

  • @spacebus5421
    @spacebus5421 3 роки тому +1

    ARUL SHARMA
    JAIPUR

  • @whatmagic805
    @whatmagic805 3 роки тому

    us how to make games in unity

  • @Shourya_2007
    @Shourya_2007 3 роки тому +2

    Harry can u pin this comment?

  • @Shailendrakumar-bu3wy
    @Shailendrakumar-bu3wy 3 роки тому +1

    Harry bhai dil do pls

  • @gourab_roy
    @gourab_roy 3 роки тому +2

    First

  • @whatmagic805
    @whatmagic805 3 роки тому

    sirr

  • @tejaskumar4470
    @tejaskumar4470 3 роки тому +2

    First 🔥

  • @ankitverma9635
    @ankitverma9635 3 роки тому

    sir I am having error like this in python if I install any library in python
    pip install time
    ERROR: Could not find a version that satisfies the requirement time (from versions: none)
    ERROR: No matching distribution found for time

    • @aaqib_aj
      @aaqib_aj 2 роки тому

      Google it, you will find a way

  • @whatmagic805
    @whatmagic805 3 роки тому

    pro programmer bhai answer to kar dayn

  • @m_sgaming6030
    @m_sgaming6030 3 роки тому +1

    hli

  • @sameerhussain2579
    @sameerhussain2579 3 роки тому +2

    not first 😂

  • @whatmagic805
    @whatmagic805 3 роки тому

    answer

  • @shaon1412
    @shaon1412 3 роки тому +1

    5th comment

  • @whatmagic805
    @whatmagic805 3 роки тому

    sirr?

  • @kailashahir4413
    @kailashahir4413 3 роки тому +1

    1st
    Give me ❤️❤️

  • @surajkumarjha6155
    @surajkumarjha6155 3 роки тому +1

    1

  • @whatmagic805
    @whatmagic805 3 роки тому

    sir

  • @whatmagic805
    @whatmagic805 3 роки тому

    can you teach

  • @abhishekganapure6456
    @abhishekganapure6456 3 роки тому

    Harry bhai pin karwa do yaar ye baar tou🙏🙏🙏🙏

  • @brooklyn5522
    @brooklyn5522 3 роки тому +1

    first

  • @develgamers6801
    @develgamers6801 3 роки тому +1

    Second

  • @HarivanshKripaVlogs
    @HarivanshKripaVlogs 2 роки тому

    code commit krdo harry bhai video 69 ke aage ke

  • @whatmagic805
    @whatmagic805 3 роки тому

    sir?? answer me please

  • @whatmagic805
    @whatmagic805 3 роки тому

    Jee??

  • @whatmagic805
    @whatmagic805 3 роки тому

    answer to kar dayn

  • @whatmagic805
    @whatmagic805 3 роки тому

    please???

  • @aditya-cs6ru
    @aditya-cs6ru 3 роки тому

    Please give me a heart

  • @whatmagic805
    @whatmagic805 3 роки тому

    you always ignoring please answer meeee

  • @coderextraordinary178
    @coderextraordinary178 3 роки тому +1

    First View

    • @Pratosh.Sonekar
      @Pratosh.Sonekar 3 роки тому

      Harry bhai ko bolo java ke notes ek zip file me de please 😊🙏

  • @marinapaul__44
    @marinapaul__44 7 місяців тому

    word.toLowerCase is not a function
    TypeError: word.toLowerCase is not a function
    Need help! :)

  • @rajavjain1934
    @rajavjain1934 Рік тому

    //copy the code in SignUp form and don't forget to the change the port no.
    //use this for for checking password and confirm password are same or not---------
    const handleSubmit = async (e) => {
    e.preventDefault();
    if (credentials.password === credentials.cpassword) {
    const response = await fetch("localhost:2000/api/auth/createuser", {
    method: 'POST',
    headers: {
    'Content-Type': 'application/json'
    },
    body: JSON.stringify({ name: credentials.name, email: credentials.email, password: credentials.password })
    });
    const json = await response.json();
    console.log(json);
    if (json.success) {
    localStorage.setItem('token', json.authtoken)
    props.showAlert("Account Created Successfully", "success")
    navigate("/");
    }
    else {
    props.showAlert("Email Already exists !!! Try with Signing up", "danger")
    }
    }
    else {
    props.showAlert("Confirm Password does not match", "danger")
    }
    }

  • @hiphop861
    @hiphop861 Рік тому

    This course are so helpful to me
    You are the only one who explains neatly I have seen other videos but they were not that understandable but your videos are so helpful
    Thank you😃

  • @udayan285
    @udayan285 2 роки тому

    Thanks

  • @harisali4287
    @harisali4287 3 роки тому +2

    First

  • @user-me9vo2pf9r
    @user-me9vo2pf9r 3 роки тому +1

    1

  • @Atif_Ahmad
    @Atif_Ahmad 3 роки тому +1

    Second

  • @aditya-cs6ru
    @aditya-cs6ru 3 роки тому +2

    First

  • @RohanDasRD
    @RohanDasRD 3 роки тому +1

    First