Тёмный

React Contact Manager App | CRUD | React JS Tutorial 2022 | NAVEEN SAGGAM 

UiBrains Technologies
Подписаться 25 тыс.
Просмотров 46 тыс.
50% 1

Опубликовано:

 

2 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 88   
@parvathyvd
@parvathyvd Год назад
I have a doubt regarding the async await part for getting contacts . I heard using async directly inside useEffect is not a good practice / ❌ Don't do this! useEffect(async () => { const users = await fetchUsers(); setUsers(users); return () => { // this never gets called, hello memory leaks... }; }, []); This WORKS, but you should avoid it. Why? Because React’s useEffect hook expects a cleanup function returned from it which is called when the component unmounts. Using an async function here will cause a bug as the cleanup function will never get called. use this way instead useEffect(() => { const getUsers = async () => { const users = await fetchUsers(); setUsers(users); }; getUsers(); // run it, run it return () => { // this now gets called when the component unmounts }; }, []); Thanks
@stuartdaniells5204
@stuartdaniells5204 Год назад
To correct the useEffect() hook error - async await part for getting contacts - change your code to: useEffect(() => { async function handleResp(){ try{} catch{} }; handleResp(); }, []); ------------------------- New version of react throws errors if you use async () => {}
@mayursarode8909
@mayursarode8909 Год назад
Thank You So Much For This comment bro Bhai Ek din pura gaya Aur dusare din comment dekhne laga to Aapka Comment Dikha Aur Error Fix Huaa Etni Khushi horahi Hai kya Bata U Apko THenk You So Much Once Again Bro
@alehbarushka9835
@alehbarushka9835 2 года назад
thank you! you really help newcomers like me ✌
@nice.hemant
@nice.hemant Год назад
dont know what methods you are using but after 1:16:00 nothing is running. This code is shows error where using colon(:) useState(initialState:{ , useEffect(effects: ....... and so many errors.
@kishorekumar4268
@kishorekumar4268 Год назад
Can anyone tell me how to deploy this project ?? Both server part and src-component. I made delopy using npm build and netlify but contact detail is not displaying..pls help
@silentwindstudio
@silentwindstudio 2 года назад
This should not be called "tutorial", there is plenty of code that is being added by Webstorm itself and you are not showing it at all...
@swathyjdas9285
@swathyjdas9285 2 года назад
Sir Can you please do a tutorial on movie ticket boking with MERN stack ?
@ranuchaubey90
@ranuchaubey90 2 года назад
awesome tutorial, thank you sir
@TejasBorkhede-w6c
@TejasBorkhede-w6c 2 месяца назад
thank you sir very helpful information
@vignesh-l3i
@vignesh-l3i 8 месяцев назад
super bro, bro could u plz share Source Code plz
@haikomaram
@haikomaram 2 года назад
Awesome Sir.
@geejey7127
@geejey7127 Год назад
I am getting an error Failed to compile. ./src/components/contacts/ContactList/ContactList.jsx Line 6: Parsing error: The type cast expression is expected to be wrapped with parenthesis. 4 | 5 | let ContactList = () => { > 6 | let [state,setState] = useState(initialState:{ | ^ 7 | loading :false, 8 | contacts : [], 9 | errorMessage : ''
@deepakkadela3056
@deepakkadela3056 Год назад
Remove the "initialState" word from your code.
@geejey7127
@geejey7127 Год назад
@@deepakkadela3056
@saranyaa5642
@saranyaa5642 Год назад
Sir please deploy it in netlify and show us. Am having error after deployed in netlify. I put separate folder for server. Is this the issue. If i run locally by starting both client and server, it is working properly. But after deployment it is not working it cannot able to get /contacts.please help me
@bencorbett1867
@bencorbett1867 Год назад
Thank you sir 💻
@nikbhaivillageboy
@nikbhaivillageboy 2 года назад
Sir please make video on how to deploy this project
@tahaali9543
@tahaali9543 Год назад
hello sir, you are using useEffect to fetch data from json u are doing wrong async because useeffect return sybchronous not asynchronous
@mohammedmmutaru870
@mohammedmmutaru870 2 года назад
Hello sir. Please I getting this error when using the POST API function error: Unhandled Runtime Error TypeError: func.apply is not a function Call Stack HTMLUnknownElement.callCallback
@bhanu_vamshi
@bhanu_vamshi 9 месяцев назад
I have a doubt that when we use json-server and json file, when we deploy the app will it works.
@saranyaa5642
@saranyaa5642 Год назад
Why can't you use this db. Json file inside src. Why we have to go for separate folder
@sapnasawai5199
@sapnasawai5199 2 года назад
I needed this.. Thanks a lot It's too good
@UiBrainsTechnologies
@UiBrainsTechnologies 2 года назад
thank you
@PrabinParajuli
@PrabinParajuli 2 года назад
Great tutorial ! I'm stuck in the server side rending part and GITHUB link doesn't have src folder. Can you upload it please?
@janakirampeddisetty508
@janakirampeddisetty508 Год назад
1:12:28 he had open the o/p of json contacts file in chrome there u can see the data or take a screen shot
@tahaali9543
@tahaali9543 Год назад
not able to get data into console using useEffect
@Unique_Themes_Studios
@Unique_Themes_Studios 2 года назад
so there is one problem with the database when u are trying to open it in a new browser so the record u are trying to select for groups so should not accessible so what actually solutions for the same try that once u will get it and nice thing learn
@geejey7127
@geejey7127 Год назад
Deepak Kadela thanks and one more error geeting below code src/components/contacts/ContactList/ContactList.jsx Line 11: Parsing error: Unexpected token, expected "," 9 | }) 10 | > 11 | useEffect (effect: async() => { | ^ 12 | try { 13 | let response = await ContactService.getAllContacts(); 14 | console.log(response.data)
@sairamgudiputi8
@sairamgudiputi8 2 года назад
how come async await work with useEffect, for it was getting error.
@cristhianosoriosuarez4603
@cristhianosoriosuarez4603 2 года назад
yo también estoy teniendo problemas con el useEffect
@sairamgudiputi8
@sairamgudiputi8 2 года назад
@@cristhianosoriosuarez4603 useEffect bever return anything we have to create new function for async await
@jordanmoukam2339
@jordanmoukam2339 2 года назад
Hello everyone. I'm facing an issue while launching my app after intalling firebase. The error message is "Module not found: Error: Package path . is not exported from package". It's asking me to see exports field in package.json Can someone help me go through this please?
@jayaprathapsivasamy
@jayaprathapsivasamy 2 года назад
how to create a react using node or firebase, pls make one project of it?
@pochankiTuber
@pochankiTuber 2 года назад
Stuck at 1:21:08 when I inspect on application it shows error not able to se the array of user
@dawandeepsinghs543
@dawandeepsinghs543 2 года назад
its resolved or not?
@pochankiTuber
@pochankiTuber 2 года назад
Resolved
@dawandeepsinghs543
@dawandeepsinghs543 2 года назад
@@pochankiTuber me to
@mayraramirez1699
@mayraramirez1699 2 года назад
@@pochankiTuber How did you resolve the issue? I'm getting a "useEffect must not return anything besides a function...instead, write async function inside your effect and call it immediately."
@r_rajeshkumar_
@r_rajeshkumar_ Год назад
sir how do i do this with spring boot please help me
@shaikhsimran3227
@shaikhsimran3227 Год назад
You should mention it's a class you are using
@vigneshwaranm2534
@vigneshwaranm2534 Год назад
Hi sir ,thanks for uploading such wonderful content...😍
@ganapathiraoduba150
@ganapathiraoduba150 Год назад
sir while opening this project in new window , created contacts are not synching. can you clarify this
@saurabhkaprawan1055
@saurabhkaprawan1055 Год назад
Do you have solution of this?
@ibrahimal-habian4796
@ibrahimal-habian4796 2 года назад
Thank you for this tutorial , I want to ask if there is any configuration if I used asp core api , I mean , is it same as json server? .
@SaurabhKrishanGulab
@SaurabhKrishanGulab 2 года назад
Thak you for sharing.😍
@bikrampandey475
@bikrampandey475 2 года назад
Hi, when I try to use ViewContacts to get single contactId, I get an error 404 not found. What could have been the cause?
@jackynewton5735
@jackynewton5735 2 года назад
a typo maybe?
@coolcarlatv2944
@coolcarlatv2944 2 года назад
Is search bar. Working
@su6012
@su6012 Год назад
Superb! Tutorial 😊
@pankajsuryavanshi8332
@pankajsuryavanshi8332 2 года назад
Try to used dark black or good theme for vs code because code visibility is not good.
@gopivallabhaneni3417
@gopivallabhaneni3417 Год назад
its not visual studio it is web storm default theme is like this.
@elsasox
@elsasox Год назад
this app so ussles
@geejey7127
@geejey7127 Год назад
how to solve this
@mukul01suyal
@mukul01suyal 2 года назад
Bro Git me src file bhi upload kro
@gabyzapata9183
@gabyzapata9183 2 года назад
Felicitaciones y gracias por éste tremendo tutorial, está de lujo, pero el vsc me dá error en el 1:19:00, no me reconoce y no puedo avanzar... nosé cuál es mi error... ayuda por favor. HELP
@gabyzapata9183
@gabyzapata9183 2 года назад
@@hakanturan7871 no
@shaktiworld4313
@shaktiworld4313 Год назад
ty so much sir
@vinay_yadav
@vinay_yadav 7 месяцев назад
great sir
@faisalmomin362
@faisalmomin362 2 года назад
Thnx sir
@UiBrainsTechnologies
@UiBrainsTechnologies 2 года назад
my pleasure
@qrdacoda9816
@qrdacoda9816 Год назад
thanks alot
@vietongo8880
@vietongo8880 Год назад
thank you
@kevin_thecharacter723
@kevin_thecharacter723 2 года назад
1:19:15 i am getting syntax error from there. Its showing Error: The type cast expression is expected to be wrapped with parenthesis when using get function ,Expected ',' etc
@PrabinParajuli
@PrabinParajuli 2 года назад
same
@PrabinParajuli
@PrabinParajuli 2 года назад
@Ketan Chopade did you solve it?
@kevin_thecharacter723
@kevin_thecharacter723 2 года назад
@Ketan Chopade nope
@Latif127
@Latif127 2 года назад
It is a nice tutorial, thank you
@mukul01suyal
@mukul01suyal 2 года назад
Src file..
@itwalamajdoor
@itwalamajdoor 2 года назад
I made the same project with your tutorial it was awesome. Now can you please make a video on hosting the contact-manager app on anywhere.
@kevin_thecharacter723
@kevin_thecharacter723 2 года назад
Please give your source code as we are finding errors in our code
@shahilpk9029
@shahilpk9029 Год назад
🔥🔥🥰🥰🥰🥰
@mukul01suyal
@mukul01suyal 2 года назад
Src folder bro
@chaitanyakrishnam5113
@chaitanyakrishnam5113 2 года назад
Awesome tutorial, great job
@nikbhaivillageboy
@nikbhaivillageboy 2 года назад
Excellent project sir, I love it ,
@markd774
@markd774 2 года назад
Fantastic tutorial!!
@jackynewton5735
@jackynewton5735 2 года назад
at 1:19:16 how do you get the "initialState:" on line 6? what extension or plugin is it? Thank you for this awesome tutorial, It's helping me tons!
@gabyzapata9183
@gabyzapata9183 2 года назад
Hola,yo también tengo ésa pregunta, él vsc me da error justamente en éste momento, no puedo avanzar y no sé lo que es, simplemente me atasqué ahí. Estoy desesperada porque no he podido descubrir la respuesta.
@gamingarena5045
@gamingarena5045 2 года назад
@@gabyzapata9183 use direct object without giving it a name (initialState) your problem will be solved. But then again you will get stuck in contactList page where you will call your data from json-server.
@ajaysarwade7482
@ajaysarwade7482 11 месяцев назад
Sir when I use the async based call back i get an error plz solve it
@kamalsharma8249
@kamalsharma8249 2 года назад
hello sir ,thanks for uploading such wonderful content❤ .just have a doubt .. what does ...state means in setState function?
@00xfitx2
@00xfitx2 2 года назад
... is the spread operator so he is passing the actual state with "...state" and then making other changes.
@jackynewton5735
@jackynewton5735 2 года назад
@@00xfitx2 do you know at1:19:16 how to get the "initialState:" on line 6? what extension or plugin is it?
@00xfitx2
@00xfitx2 2 года назад
@@jackynewton5735 i don't know, he's using webStorm IDE, it can be from there :)
@ganeshv4724
@ganeshv4724 11 месяцев назад
What are you doing when he explaining such a stupid question
@jackywan6829
@jackywan6829 2 года назад
Thanks, already subscribed your channel
Далее
Every React Concept Explained in 12 Minutes
11:53
Просмотров 676 тыс.
10 common mistakes with the Next.js App Router
20:37
Просмотров 217 тыс.
The Correct Way to Delete Data in .NET
11:11
Просмотров 28 тыс.
React visually explained: 'use client'
15:57
Просмотров 37 тыс.