how to save object in an object?
I want to save user as object in rating object, but when I am going to add it its userId adding instead of whole user object ?
Connecting my React server to my Express JS server
everyone! I’m currently trying to set up my connection between front-end server(React app) with backend server(NodeJs). I tried making requests from frontend to backend using axios .I tested the backend requests on Postman and they work as expected. However,I can’t start my front-end server because I have this error
“Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
React Error when trying to filter data after retreival
When I attempt to format the data being received from TableData I keep getting an error Cannot read properties of undefined (reading ‘replace’). This happens when I reload the page after trying to filter the data I have put a comment in the code to show the line that when i refresh and add the code it gives me the error.
Unable to show static files from server (React and Node.Js) , works on local but not on real deployed server
I am new to React and Node.Js and I am trying to create a simulation site where a manager can upload promotions into the server to showcase. The images and pdf are able to be showcased on my own local machine but unfortunately , it doesn’t showcase on the real server. May I understand why this is happening and how I should fix this? My local machine is running on windows while the server is running on linux
useEffect not running on page load
When you log in and go to the main runs page, it should get the runs (JSON data type) from your account (in mysql database) and display them through a useEffect, but the useEffect does not seem to be running. Also when I try to add a new run, it adds it to the database but returns and error saying
TypeError: runs.map is not a function
at DisplayRuns
Server Not updating the data even though it is updated in the json file
So, I am using react and node to build a website and when testing locally it worked fine ,but once i hosted it on VPS, it doesnt seem to be working. For example when I send a feedback from the feedback page, the feedback.json in the server is updated but on the admin panel, in feedback section the new feedback doesnot appear.
Are there scams in linkedin job offers? [closed]
Closed 1 min ago.
what is the code for creating login page using front end react and backend nodejs and database used should be mysql
code to create login page for front end react and back end node js
Uncaught Reference Error: process is not defined
I have a very simple Node.js and React application. I started using UserContext.Provider and received a bunch of errors about stream and crypto. I fixed those by creating fallbacks in my webpack but no I have the following error:
Receiving an error: useNavigate() may be used only in the context of a component
I am trying to protect a couple of pages from logged out users. I’m fairly new to react so this is error is new to me, unsure what I am doing wrong…