All Questions
Tagged with react-hooks node.js
417
questions
0
votes
1
answer
61
views
Not able to get inside the for loop in React js
I am making a To-Do App. I am using React frontend, Node backend, and Postgresql DB.
I made a component called <TaskLists /> which takes three properties or props:
startDate
endDate
allTasks
...
-1
votes
0
answers
43
views
Emitting Messages in useEffect While Strict Mode Is On
i make user connect to the socket as soon as they enter the website since i use socket instance in more than one component and i get sockets using useContext.When the user gets in the room component i ...
0
votes
0
answers
20
views
Web Sockets Socket.IO + React multiple screens for each user problem
(Hope someone could help me) I'm developing a Web Sockets game (similar to Pong) with Express for backend and React for frontend. I'm currently facing some trouble trying to give each user his own ...
0
votes
1
answer
61
views
Webhook signature verification failed. No webhook payload was provided
when i run the following command in the cmd stripe trigger payment_intent.succeeded
I get the following error here is myhandleStripeWebhook
async function handleStripeWebhook(req, res) {
const ...
2
votes
2
answers
1k
views
How can I resolve the 'ReferenceError: Request is not defined' error that occurs every time I run the npm start command?
I'm encountering a 'ReferenceError: Request is not defined' error every time I run npm start in my Node.js environment, and I suspect it's stemming from the environmental file "node_modules/@expo/...
0
votes
0
answers
23
views
how to make login page the main page the parent page using react?
I am trying to make a login page to my dashboard system, I created a component for that, but when I go to login page I can see Side bar, profile setting and something like that, I want to see login ...
0
votes
1
answer
27
views
I'm facing an error while loading a script in my React app's public HTML file, but the script works fine in the background. How can I resolve this?
I'm encountering an issue in my React application where I'm getting an error when loading a script in the public HTML file. Surprisingly, the script seems to be functioning correctly in the background,...
0
votes
0
answers
25
views
renderToString runing as Node standalone script
I'm trying to make transpiler to run as stand-alone node script.
// build.js
import esbuild from 'esbuild';
import path from 'path';
import { renderToString } from 'react-dom/server';
import React, { ...
1
vote
1
answer
40
views
State not immediately saved with socket.io
As you can see in my problem below, I receive a message with the action stop. There I update 3 state variables. My problem is with the setTotalScore. totalScore is 0 in the beginning, and when I ...
0
votes
0
answers
21
views
Cannot see Profile photo of user after signing in
I have made a MERN Stack Authentication Web application.
Up until yesterday when a user logs in with his google account, he could see the profile photo too but now when I resumed my work today, I am ...
0
votes
0
answers
16
views
Cannot read properties of undefined (reading 'params')' in Edit Excercise.js Page? [duplicate]
1
I am getting error like TypeError: Cannot read properties of undefined (reading 'params') in EditExcercise.js Page and my error image and code is
Cannot Read Properties Of undefined
import React, { ...
1
vote
1
answer
66
views
In this Sidebar, buttons don't load the correct content page I want. But rather does nothing. I can't find out why. Help appreciated
Here are the related components I used to build the Sidebar UI. Everything is displaying fine. But the loading of the content pages and how to connect the Content.jsx and SideNavBar.jsx to display ...
0
votes
1
answer
16
views
Why my fileInfoDoC useState shows undefined?
I'm trying to store the value docId but docId show undefined
please tell me the solution
"use client"
import React, { useEffect, useState } from 'react'
import UploadForm from './_components/...
0
votes
0
answers
31
views
User Authentication state not being changed in React / Node app [duplicate]
Im trying to authenticate a user to check if they have the required correct tokens for accessing a protected route and i dont understand why in my useEffect in my useAuth file does not correctly ...
0
votes
1
answer
226
views
useEffect not running on Vercel deployment using Vite and React Router
I have deployed a React site using Vite as the framework through Vercel, the project uses React Router for routing and everything works fine on my local machine, I configured the backend on a separate ...