All Questions
Tagged with reactjs javascript
207,541
questions
0
votes
1
answer
51
views
HTML script tag isn't recognizing Javascript in React project
I'm trying to set up Swiper in my React project so I can have an image carousel, but the script I need to use isn't recognized, like it's not even recognizing the keywords 'const' or 'new' (as you can ...
0
votes
0
answers
27
views
How to allow user to download an image using a reactjs button click? [duplicate]
EDIT: What makes this different is that I'm perfectly able to access these resources with the browser using an <img> tag, but can't get the data with a fetch. The 'similar' questions don't ...
-1
votes
0
answers
26
views
npm install hangs up when using bundleDependencies [closed]
My package.json dependencies looks as below:
"dependencies": {
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"express": "^4.18.2&...
0
votes
1
answer
36
views
How can I re-render my MUI checkboxes after changing some states? React JS
I made an application where I can visualize a graph. All nodes in the graph are blue, and I have a component that is basically a checkbox. The user can click it, and I change a state. This state ...
0
votes
1
answer
41
views
+200
how to add text annotations to text notes in a react nextjs 14 (app router) app
I am trying to build an app that allows users to comment on legal judgments. i have judgments and notes in my app. notes are made on the text of judgments. At the moment, when a user selects an area ...
-1
votes
0
answers
23
views
TypeError: Cannot read properties of undefined (reading 'numberOfCakes')
I am beginner to React and Redux
I am trying to learn Redux with React.
I have created a store in store.js as below -
const redux = require("redux");
const createStore = redux.createStore;
...
-1
votes
0
answers
12
views
I setup my react app for testing and now i am not able to run my project [closed]
$ npm start
start
parcel index.html
Error: Got unexpected undefined
at nullthrows (D:\Dhruv\Skills\Web Development Sigma\React\react app\node_modules\nullthrows\nullthrows.js:7:15)
at RequestGraph....
-1
votes
1
answer
28
views
Javascript exporting multi dimentioanl array results in some values to be empty
I am coding a practice react application in which I am exporting a primitive array with a separate file named data.js
export const data = [
{
type:"multiple",
difficulty:"easy&...
1
vote
3
answers
45
views
Find the id of the div using onMouseOver event object
I wrote the below code to capture the id for the div, when the user hovers over the div.
<div className="part-3" id="graph-1" onMouseEnter={handleHover}>
<h3 className=&...
0
votes
1
answer
69
views
SVG Component Rendering Inconsistently Across Browsers
I'm working on an SVG gauge component that works perfectly in Chrome but has rendering issues in Safari and Firefox. The gauge displays progress using a gradient fill and a rotating pointer. In Chrome,...
0
votes
0
answers
13
views
Why is the text cycle I created in FramerMotion and React overlapping at seemingly random times?
I am trying to create an infinite text cycle in React using FramerMotion, showing one word at a time, and cycling to the next word every three seconds. The code below works like a charm a lot of the ...
0
votes
0
answers
15
views
How to handle YouTube Data API v3 Error 429, Too many Requests (Resource has been exhausted)
I'm trying to create a playlist on YouTube using the YouTube Data API v3 in my React application. However, I'm encountering a 429 error indicating that my resource has been exhausted. To handle this, ...
0
votes
0
answers
23
views
How to make a component not to re-render in nextjs [closed]
I have two components Timer and Ambience sound player both in the main component , Since timer component use useState,useEffect when it re-renders the ambience sound component also reRender making the ...
0
votes
1
answer
25
views
Jotai useEffect Maximum update depth exceeded
I'm having an issue with a React native app where i store state in Jotai atoms.
My issue lies in my component that updates auth state on app state change.
When the app goes from inactive -> active, ...
0
votes
1
answer
31
views
Sorting React Table by Date-Time in Ascending Order Doesn't Work Correctly
I'm working on a React application where I have a table displaying data that includes date and time fields. The date format in my data is YYYY/MM/DD, and I concatenate it with the time to create a ...