How frontend and backend connects
Frontend : - We send data from frontend
like from req.body or something then it goes in database to store the values OR users information
Database to FE
we store all the values of user in db we can store in both atlas as well as in compass
how to FE get the values from database using fetch method which is async defined
async means multitasking
like we write async await that means
wait till we created the user in the database -- > after this run next line of the code to get the user
and
both the things getting data from the database or (create function in backend)sending data to the databases is done using fetch method of react
Comments
Post a Comment