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

  Рет қаралды 6,400

WebChain Dev

WebChain Dev

Күн бұрын

Пікірлер: 15
@akporraphael9069
@akporraphael9069 3 ай бұрын
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 2 ай бұрын
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.
@fiend_1108
@fiend_1108 Жыл бұрын
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 Жыл бұрын
@@WebChainDev could you possibly make a small tutorial on it, it would be really helpful
@anishgupta2915
@anishgupta2915 11 ай бұрын
@@WebChainDev sir how join other in chatroom with his mail
@anishgupta2915
@anishgupta2915 11 ай бұрын
yes sir @@fiend_1108
@YassineEnnachat
@YassineEnnachat 7 ай бұрын
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"
@MujahidulIslam
@MujahidulIslam 10 ай бұрын
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 10 ай бұрын
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
I built a chat app in 7 minutes with React & Firebase
8:53
Fireship
Рет қаралды 1,4 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
Smartphone Awards 2024!
27:30
Marques Brownlee
Рет қаралды 3,1 МЛН
Design A Responsive Product Card Using Tailwind CSS  | Tailwind CSS Tutorial
14:16
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34