goo.gl/bPcyXW : Buy me a Coffee bit.ly/2t0op0W : React + AspNet Core CRUD bit.ly/3Me2bxo : Everyone's favourite way of creating React forms bit.ly/3UQdqPZ : Learn JavaScript in One Video bit.ly/36I1zuH : Material UI with React
@Ganesh-ld8ph3 жыл бұрын
0:53 - React App installation 1:55 - Adding Bootstap CDN links 3:00 - Creating Firebase project for Realtime Database 5:50 - Creating components and contact forms design 17:00 - Input Onchange event operation 21:13 - onSubmit form values storing in firebase Database 26:22 - Fetching form values from Database 33:45 - Edit form values operation 40:50 - Deleting values from Database and App
@Saradomin653 жыл бұрын
For new people with errors in 23:35. Change the import statement from import * as firebase from "firebase/app"; to import firebase from "firebase/app"; import "firebase/database"; Since there's been a breaking change after version 8.0.0 of firebase and it's a good practice to explicitly only import what package of firebase function we'll be using (e.g database, auth, etc.) hence the second import statement.
@mdnajamraine22293 жыл бұрын
thanks man this really works.... Thanks a ton
@secretcaptain76943 жыл бұрын
Thanks bro
@harshavardhan27753 жыл бұрын
Thank you so much. This is what i had been searching for a long time! This video helped me understand better than the documentation I hope you make one on authentication too
@caiovinicius71334 жыл бұрын
Thank you very much. Thanks to this video I was able to understand the ease of firebase. All the best and a lot of success on your journey.
@mayaparamita22543 жыл бұрын
THANK YOU I tried it and it works. Very simple! Thanks.
@zunairzafar67424 жыл бұрын
Great Video and Blog! - much needed tutorial! Thanks a lot it has given a lot of useful information! - Simple to the point!
@muhammadhamzashabbir83643 жыл бұрын
You are the best sir. I have learned a lot of things in one video wow great you are amazing !!!!!!!!!!!!
@CodAffection3 жыл бұрын
Glad to hear that
@noraifuru4 жыл бұрын
Thank you very much for the effort and good job sir, you're helping me a lot. I suggest an authentication video with react and firebase as well ^^
@mrenderbombz4 жыл бұрын
Cara, você realmente me salvou
@mohamedkalid87132 жыл бұрын
For new people with errors in 23:35. Change the import statement from import * as firebase from "firebase/app"; to import firebase from "firebase/compat/app"; import "firebase/compat/database";
@vinothkumars74214 жыл бұрын
Thanks. Started using firebase with react.. This is a good one.. Keep going
@secretcaptain76943 жыл бұрын
Thank you for this type of wonderful video and as well description is also great
@trevorjarvis13614 жыл бұрын
Best tutorial on this topic. Nicely done!
@rupeshchandramohanty4164 жыл бұрын
Thank you for this Tutorial, it was really simple to understand and this project helped me gain some confidence!
@NathanAguilarr Жыл бұрын
I am having a problem displaying the application form on the React App. Instead of showing the Contact Register, display form, or list of contacts as it should, it only shows a blank white page. This issue occurred at around 10:00. Do you have any tips on how to fix this?
@santrawebtech353 жыл бұрын
hi sir why this errors are showing me when i export firebasedb to component ./src/firebase.js Attempted import error: 'initializeApp' is not exported from 'firebase' (imported as 'firebase').
@khaleeljaffal47323 жыл бұрын
thanks for this video, but i have a problem with the references with firebase any help??
@davidpereira40264 жыл бұрын
I really loved this tutorial ty for this.
@CodAffection4 жыл бұрын
Glad it was helpful!
@gauravwaghmare38833 жыл бұрын
Import error: initialize App is not exported form firebase
@pjguitar153 жыл бұрын
Bro, instead of sfc snippet. You can use rafce to get the complete structure with the import
@CodAffection3 жыл бұрын
Thanks, bro.
@agustinlavalla88924 жыл бұрын
Great lesson. Thanks you!
@aayushsharma93864 жыл бұрын
After reading data from 32:11 , not able to enter anything in fields. Anyone else facing similar issue ?
@abdallahjabermohamad31473 жыл бұрын
you re the best bro !!! , thank you so much
@shivamtyagi95974 жыл бұрын
amazing video. I used it in my project
@codemasterinnovative4 жыл бұрын
I love you bro fetching data in firebase
@khiemnguyen69304 жыл бұрын
Help me a lot. Thank you
@mootimadness78254 жыл бұрын
I really needed this thx a lot sir
@thiagoalves83394 жыл бұрын
helped me a lot Congratulacios
@jinyoucheng81143 жыл бұрын
Thank you very much. In that case (18:48), how to validate email with regex? Not only email, but also any kind of input such as zipCode, credit card number etc?
@diegoteran81264 жыл бұрын
Gracias aprendí mucho justo lo que quería saber
@sloggo4 жыл бұрын
Why do I have trouble with mapping ? ( 30:35 ), it returns nothing, I tried to console.log inside of it, but nothing appears in console.
@sloggo4 жыл бұрын
Of course I correctly wrote all the code, double checked it, and can't solve the issue please help
@haganlife4 жыл бұрын
@@sloggo post your code in codesandbox.io so we can see where you may have bugged your code
@athiberal70583 жыл бұрын
i can't find code js on 2:10
@asifalikhan52813 жыл бұрын
this video made my day
@safalpatel28394 жыл бұрын
Thanks a lot for this helpful content🔥🔥
@queenofnoodles75043 жыл бұрын
Well explained 😇
@budgetgamer-tamil54154 жыл бұрын
We must validate the details entered using JS or else empty data will be added in the firebase database if the user just clicks the submit button
@rahulmartin104 жыл бұрын
how do we do that? pls help
@budgetgamer-tamil54154 жыл бұрын
@@rahulmartin10 kzbin.info/www/bejne/f5-Tn3VmdqeUi80 try this
@adnanmehmood73844 жыл бұрын
25:05 when i click on save this error show (Failed to compile ./src/components/Contacts.js Module not found: Can't resolve '../firebase' in 'C:\Users\AD\Desktop\New folder\firebase_crud\src\components' This error occurred during the build time and cannot be dismissed.
@adnanmehmood73844 жыл бұрын
i double check code but still show error
@arteyefectosproducciones98524 жыл бұрын
Lograste resolver amigo?
@meekmantaran4 жыл бұрын
Run "npm i firebase" again in the terminal after stopping the app...
@roseisjustarose58683 жыл бұрын
how to click using that backlit is it backlit instead of single quote?
@musangowope55564 жыл бұрын
Nice tutorial man!
@edwardpangilinan72634 жыл бұрын
Line 24:4: React Hook useEffect has a missing dependency: 'initialFieldValues'. Either include it or remove the dependency array
@veloxSZ4 жыл бұрын
you can simply remove it, it's not necessary.
@intlconxun4 жыл бұрын
I have this warning, also. Not sure how to remove it.
@ed1nh04 жыл бұрын
Guys you can remove the dependencies. Disable the ESLint warning and keep coding.
@yashasaveekesarwani25514 жыл бұрын
thanks a lot brother
@ReynaldAdolphe4 жыл бұрын
Is this final project on GitHub or somewhere to download?
@sonalgurav22123 жыл бұрын
How we can perform insert update delete select operations in same form using reactjs and firebase
@reaganganancial98014 жыл бұрын
The Bug here is even if you don't fill up the form it will still save it and give you an empty data.
@intlconxun4 жыл бұрын
I had hoped that would be addressed.
@intlconxun4 жыл бұрын
Hello, I hope you are well. Can you help me... I have reached 25:00 and now I am getting the error message: ./src/firebase.js Attempted import error: 'initializeApp' is not exported from 'firebase' (imported as 'firebase'). Everything has been working wonderfully. I believe I have coded everything as you have shown. Can you give me any advice? Thank you
@Kushkrakenco4 жыл бұрын
Hey Maryam i ran into the same problem fixed it by changing import * as firebase from 'firebase' var firebaseConfig = { // Your Firebase Details }; // Initialize Firebase var fireDb = firebase.initializeApp(firebaseConfig); export default fireDb.database().ref(); to import firebase from 'firebase/app' import 'firebase/database' var firebaseConfig = { // Your Firebase Details }; // Initialize Firebase var fireDb = firebase.initializeApp(firebaseConfig); export default fireDb.database().ref(); hope this helps
@intlconxun4 жыл бұрын
@@Kushkrakenco Thank you, that did help.
@TheElderbary4 жыл бұрын
@@Kushkrakenco I have a problem Expected an assigment or function call and instead saw an expression. Its to useEffect firebase.child('contact').on('value', (snapshot) => { if (snapshot.val() != null) setContactObjects; }) } []}. Do you have any idea?
@Kushkrakenco4 жыл бұрын
@@TheElderbary Hey im not really sure about this I can have a look and get back to you if i find a fix i do have a repo on github if you like?
@TheElderbary4 жыл бұрын
@@Kushkrakenco If you could share the repository I would be happy
@MapMavericks4 жыл бұрын
Thank you
@ed1nh03 жыл бұрын
24:38 that arrow at line 10 is throwing me this error: ```The parser expected to find a '}' to match the '{' token here.```
@mayaparamita22543 жыл бұрын
is it perhaps you put other than '{' and '}'? Maybe you put '[ ]' or '( )'?
@ed1nh03 жыл бұрын
@@mayaparamita2254 nope, this issue is so weird...
@jaki13253 жыл бұрын
how to handle this error? Failed to compile ./src/components/Contacts.js Module not found: Can't resolve 'firebase' in 'E:\MAGANG\firebase-crud\src\components'
@basilelhassan72193 жыл бұрын
I'm still facing an issue It keep saying :" typeerror: firebase_app__webpack_imported_module_2__.default.database is not a function" Any suggestions to solve this??
@letrangN3 жыл бұрын
This is very helpful. also how do you clear the input field after you save or update?
@georgeyvb44603 жыл бұрын
You can make a useState hook and upon entering the data set the useState hook to an empty string
@argeelearner39784 жыл бұрын
I just finished this great video!!! and I am looking forward for more of your great stuff!! You are one of my best ASP.NET Core Channels on KZbin!!
@CodAffection4 жыл бұрын
Thanks for your wonderful feedback.
@gerard027003 жыл бұрын
why not using react router in your react projects ?
@mdshoharabpk11263 жыл бұрын
thanks
@davidpereira40264 жыл бұрын
How can i turn off the resize of textarea? i had tried "resize:none" already and ""resize="none"" "resize="off"
@aman_s_964 жыл бұрын
Are you using inline style in react? Use this style={{resize: 'none'}}
@vetrivelk77674 жыл бұрын
Hi, Please upload a video for consuming JWT token authentication implemented in asp.net core(API-backend)and React js (Front-end)
@CodAffection4 жыл бұрын
sure.
@ashishchauhan52034 жыл бұрын
bro from where u take the reference? what is the flow of building? what is the procedure of building? how can u remember all the properties at once? I have a project to submit and I am on level zero right now even after 20 day of researching. I need help.
@shivamjoshi94734 жыл бұрын
Attempted import error: 'initializeApp' is not exported from 'firebase' (imported as 'firebase'). an error occours . can u please help it, how to resolve this.
@ALEXAN03R3 жыл бұрын
if i reload the page the update option appears
@dragosalexandra31123 жыл бұрын
How could I import data from firebase? To complete the data on Firebase and then it appears in the table.
@irishjoymaguddatu60284 жыл бұрын
Sir, how can you view the contact information of each id?
@mohammedsulthana93054 жыл бұрын
sir, how to upload photos ? can u add a fileld of image ?
@TheElderbary4 жыл бұрын
I have a problem Expected an assigment or function call and instead saw an expression. Its to useEffect firebase.child('contact').on('value', (snapshot) => { if (snapshot.val() != null) setContactObjects; }) } []}. Do you have any idea?
@sushantgarudkar2113 жыл бұрын
add ({...snapshot.val()}) just after setContactObjects like setContactObjects({...snapshot.val()})
@eurowebs4 жыл бұрын
Man, i suggest you starting testing your apps, its a must, take time but pay dividends even in salary ;) unit testing, integration , e2e, xunit , testbed, jasmine, karma etc etc lets jump right in
@CodAffection4 жыл бұрын
Thanks for the idea!
@mikrailhyper3 жыл бұрын
Attempted import error: 'initializeApp' is not exported from 'firebase/app' (imported as 'firebase'). how do I fix this???
@saman55973 жыл бұрын
Change the firebase version to 7.14.1 (major version 7) , it worked fine for me
@mikrailhyper3 жыл бұрын
@@saman5597 thank you very much
@pansilutharusha67933 жыл бұрын
how to change the firebase version
@mikrailhyper3 жыл бұрын
@@pansilutharusha6793reinstall with yarn add firebase@7.14.1 or npm install firebase@7.14.1
@toddwhitelow47523 жыл бұрын
Thank you so much for this video. I really enjoyed it and learned a lot. Was there a link to the source code anywhere? I feel like that was the only thing I was missing.
@jRQLME4 жыл бұрын
THANK YOU !!!
@kuldeepdawar74963 жыл бұрын
Thanks for this tutorial. Can I get this code from Github?
@danny77rojas4 жыл бұрын
Hi, what's the theme do you using in vs code?
@CodAffection4 жыл бұрын
Night Owl
@shaikmaqsood21854 жыл бұрын
Not all Heroes wear cape
@Benjy_Gizmo3 жыл бұрын
any chance we could see the full code in github?
@bharatns5984 жыл бұрын
sfc is not showing , what to do? I need to type the full code.
@abhayagarwal50974 жыл бұрын
Well it won't magically unless you have some extension that can read what that means and expand that abbreviation.
@aritrasarkar11743 жыл бұрын
i am following your tutorial but i got an error which says firebase.database not a function. What to do ?
@ces90363 жыл бұрын
Same problem
@dohaessam7084 жыл бұрын
i got that error , TypeError: _firebase__WEBPACK_IMPORTED_MODULE_2__.default.child(...).push is not a function in line firebaseDb.child('contacts').push( 32 | obj, 33 | err => { how can i solve that ??
@sidraibrahim29254 жыл бұрын
same error.. have you resolved??
@maximillianronaldomanalu58244 жыл бұрын
@@sidraibrahim2925 i have same problem so i search another CRUD project and this is what i change ion firebase.js // Initialize Firebase firebase.initializeApp(firebaseConfig); export default firebase; and next on Contact.js change const addOrEdit = obj => { const todoRef = firebase.database().ref("contact"); const todo = { obj, }; todoRef.push(todo); } Hope this is soleved ur problem :)
@sidraibrahim29254 жыл бұрын
@@maximillianronaldomanalu5824 thank you so much. it is solved
@TheElderbary4 жыл бұрын
@@maximillianronaldomanalu5824 Do you know how to resolved problem with delete single contact?
@tarkozturk49313 жыл бұрын
Thanks...
@pansilutharusha67933 жыл бұрын
how to fix this " ./src/firebase.js Attempted import error: 'initializeApp' is not exported from 'firebase' (imported as 'firebase')."
@pansilutharusha67933 жыл бұрын
I fixed it change the firebase.js import * as firebase from 'firebase'; change like this import firebase from "firebase";
@jayakumar29274 жыл бұрын
Can you share Angular+ Firebase
@CodAffection4 жыл бұрын
we've already done that with old versions of angular - kzbin.info/www/bejne/b6jbdqp7bbp5qJI
@mizartjason77894 жыл бұрын
Hello @CodAffection Do you have idea how will I show ID number per increment? I have ID shown in my table but it is in random numbers
@mizartjason77894 жыл бұрын
Also, everytime I type, component is rendering. How will I remove this?
@haganlife4 жыл бұрын
@@mizartjason7789 Add timer to function, wait for one second before render...
@BrunoEduardoDeMouraFerreira4 жыл бұрын
do you have source of this application? Because when I try to record on the Firestore, he says that I am denied access, but I put full access to the Firestore.
@abbassyed47304 жыл бұрын
Getting an error after completing the form. TypeError: e.target is not iterable in the handleInputChange method. What could be wrong?
@munisowjanya4 жыл бұрын
Sir i am facing an error that is 'Too many re-renders. React limits the number of renders to prevent an infinite loop' Tell me how to resolve this error?
@abhayagarwal50974 жыл бұрын
Error or warning ?
@AjayKumar-yv1rb4 жыл бұрын
hello Please make a video angular 9 show category and sub-category select option very Argent...
@deborahaanyuoduman75484 жыл бұрын
why do i get this error when i implement the update operation? index.js:1 Warning: A component is changing a controlled input of type undefined to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: fb.me/react-controlled-components
@huebys4 жыл бұрын
did you ever figure this out? I am having the same issue
@deborahaanyuoduman75484 жыл бұрын
@@huebys I haven't figured it out yet. All the solutions I looked up were too complex for me to understand. Let me know if you find something
@huebys4 жыл бұрын
@@deborahaanyuoduman7548 will do!
@iUmerFarooq4 жыл бұрын
Come with more React js Projects.
@nileshchaudhari8434 жыл бұрын
Nice and clean tutorial. Can you please make video tutorial for redux that will be great help Be safe :)
@CodAffection4 жыл бұрын
it's basics covered here, check it out - kzbin.info/www/bejne/m3XSno2ur85kb7s
@nileshchaudhari8434 жыл бұрын
@@CodAffection Thanks for your hard work
@iUmerFarooq4 жыл бұрын
When you're come with MERN Stack?
@muhammadidrees66504 жыл бұрын
kzbin.info/www/bejne/hJ-3aIBulMymf7s
@manish6022able3 жыл бұрын
and my comment "here" 😁😁
@Benjy_Gizmo3 жыл бұрын
anyone getting the to many re-renders error?
@rahulmartin104 жыл бұрын
Not working now.. Please update .. records not creating in firebase database
@rahulmartin104 жыл бұрын
Its working now.. thanks :)
@bharatns5984 жыл бұрын
npx is not recognised as internal or external
@Mashwishi3 жыл бұрын
At the video 37:15 Line 14: if(props.currentId == '') Error: Expected '===' and instead saw '=='.eslinte(qeqeq) Line 20: },[props.currentId, props.contactObjects]) Error: React Hook useEffect has a missing dependency: 'initialFieldValues'. Either include it or remove the dependency array. (eslintreact-hooks/exhaustive-deps)
Hi CodAffection, I tried your previous videos, liked your teaching method, teaching through the projects, however, I was not pleased with your explanation of state and react hooks in this video, it was confusing for me, and I hardly completed the tutorial. This does not mean that you did not do a great job, it was just confusing. Thanks for providing project-based tutorials.
@CodAffection4 жыл бұрын
Noted. We can discuss that in future video.
@jaggyjut4 жыл бұрын
Sorry CodAffection, I agree with Haci as i found this tutorial difficult to understand. Also why was firebasedb.collection not used instead of firebasedb.child as in this forum sebhastian.com/react-firestore Thank you for creating the awesome learning content.
@haganlife4 жыл бұрын
@@jaggyjut Realtime Database Vs Cloud Firestore methods
@bilalullahkhan55173 жыл бұрын
Do you have any degree sir? Or does it matter to get a degree in software development job.
@christiancespedesmedina99294 жыл бұрын
TypeError: firebase_app__WEBPACK_IMPORTED_MODULE_3__.default.child is not a function .... same error in a lot of videos. Not help for me.
@sidraibrahim29254 жыл бұрын
same error. have u resolved?
@christiancespedesmedina99294 жыл бұрын
@@sidraibrahim2925 No :(
@maximillianronaldomanalu58244 жыл бұрын
@@christiancespedesmedina9929 @Sidra Ibrahim ii have sam problem so i search another CRUD project and this is what i change ion firebase.js // Initialize Firebase firebase.initializeApp(firebaseConfig); export default firebase; and next on Contact.js change const addOrEdit = obj => { const todoRef = firebase.database().ref("contact"); const todo = { obj, }; todoRef.push(todo); } Hope this is soleved ur problem :)
@ces90363 жыл бұрын
@@maximillianronaldomanalu5824 it says that the firebase is not defined. What to do?
Oh wait i forgot to import react.... Dammmmm I thought.... This was a feature or something 😂😂😂😂😂
@prashantjha6543 жыл бұрын
i was here for curd tut not bootstrap..
@pauljohny2004 жыл бұрын
Thanks for this good video ..The video is also clear. etc Was able to add a record ,Fetch a record but me facing issue on editing. mentioned firebaseDb.child(`contacts/${currentId}`).set( I receive following error Error: Reference.child failed: First argument was an invalid path = "contacts/${currentId}". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]" When i use edit . and when i change the code to . I have remove dollaar symbol. firebaseDb.child('contacts/{currentId}').set( obj,err => {if (err) console.log(err) else setCurrentId( It works but i receive 2 records one the edited record and the older record is not deleted . Any information highly appreciated. Below is my github link for the code Thanks again for your time. github.com/magazinecrm/reactcurd Thanks
@pauljohny2004 жыл бұрын
Thanks I could do the add earlier but edit i was getting a bit conufsed on ..Thanks this is the best one .. Right now Thanks and take care.Had to apply .. contacts/${currentId}` back ` Thanks