Build a real time chat app with Firebase and React.js | Beginner tutorial

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

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

  • @akporraphael9069
    @akporraphael9069 2 месяца назад

    A real life saver. I've been looking for recent tutorials to implement chat app functionality with firebase, most of em are outdated or won't work after implementing it. At least this is a stepping stone. Thanks 👍

  • @aleggs2813
    @aleggs2813 Месяц назад

    Great video, quick question though im very new to this. At 6:58 you say the dependency array should specify to run on every render/update, but the DA is [ ]. Shouldn't it be omitted if we wanted it to run on every render? My lecture notes say [ ] makes it only render once when the component is mounted.

  • @YassineEnnachat
    @YassineEnnachat 6 месяцев назад

    I think it would be better if you explained what the imported functions do upon writing the import that way we can understand why they need to be imported. and how each section of the line does like the snapshot.docs.map what does each one do "snapshot" "docs" "map"

  • @fiend_1108
    @fiend_1108 Год назад +1

    is there a way where we cn have multiple chats, instead of one global chat where anyone can join with email

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

      Yes, that's possible. I believe the structure would be something like this: a chats collection which would hold each chat as a document. This document would have fields with the people who own the chat and a messages collection like the one in this video.

    • @fiend_1108
      @fiend_1108 Год назад +1

      @@WebChainDev could you possibly make a small tutorial on it, it would be really helpful

    • @anishgupta2915
      @anishgupta2915 10 месяцев назад +1

      @@WebChainDev sir how join other in chatroom with his mail

    • @anishgupta2915
      @anishgupta2915 10 месяцев назад

      yes sir @@fiend_1108

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

    firstly thanks for make this video,, i didn't understand your source code 79 and 80 number line code. Can you explain to me? because i am beginner.

    • @WebChainDev
      @WebChainDev  9 месяцев назад +1

      In this block of code we are mapping through all of the messages. msg.data.uid === user.uid checks if the sender of the message is the current user (by seeing if their uids are the same) , and if so, places the message of the right side of the screen, otherwise putting it on the left.
      The next line does the same thing but applies some styles to the background and text color.
      Hope this helped

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

    Source Code?

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

      Here it is: gist.github.com/Mif2006/a12076e9d48444df7b3f348634a3caba

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

      thank you 😆@@WebChainDev

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

    Everything was going well but at last i got this error while connecting to local host
    [plugin:vite:react-babel] C:\Users\loren\OneDrive\Desktop\Loren Chat\src\App.jsx: Unexpected keyword 'const'. (10:4)
    13 |
    It cannot verify the word const

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

      In these cases the error is usually a typo in some other place. I suggest checking the source code to see where it is