Skip to main content

All Questions

0 votes
2 answers
40 views

Why when i send a fecth requst to Open Weather API in React JS. React first return me undefined an after that data?

I watn to make Weather App. I just start study react. I do a fetch request to Open Weather API to get a weather data. When i consol.log(data) and update my page, React first return me undefined and ...
Help Me Study's user avatar
-1 votes
1 answer
26 views

How to show component only when loaded in react? [closed]

import React, { useEffect, useState } from "react"; import "./App.css"; import Header from "./components/header"; import Home from "./components/home"; import ...
Ayush Sharma's user avatar
-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....
Dhruv's user avatar
  • 1
-2 votes
0 answers
26 views

Facing issue while deploying project on Netlify at building getting failed [closed]

i have a project and i have hosted it netlify at begining its working fine and later some days i have added more content in website and again pushed the code into github and automatically netlify ...
Mohammed Zaheer's user avatar
0 votes
1 answer
83 views

How can I fix this Cannot find module 'ajv/dist/compile/codegen' Require stack: Error when I start my react app?

Cannot find module 'ajv/dist/compile/codegen' Require stack: C:\Users\kyawz\Documents\React Project\testing\node_modules\ajv-keywords\dist\definitions\typeof.js C:\Users\kyawz\Documents\React Project\...
David Hub's user avatar
0 votes
0 answers
18 views

GLTF + GSAP Mouse tracking memory leak?

So I successfuly animated a mouse trailing GLTF model with React Three Fiber and GSAP. The issue I have now is it becomes too demanding and glitchy after some time in fullscreen mode and immediately ...
Milos Glamocak's user avatar
-2 votes
1 answer
31 views

React state update and useEffect not behaving as expected in Next.js application [duplicate]

I'm experiencing unexpected behavior with state updates and useEffect in my Next.js application. I have a component with a lock/unlock functionality, but the state updates and side effects are not ...
wormhole's user avatar
0 votes
0 answers
52 views

Cannot get setState to work on adding an array

I'm having an issue getting my setState() 'setSections(data.sections)' to work. I'm trying to save data locally and is successful, as on reload the loaded data from the previous session is shown in ...
James Cooper's user avatar
0 votes
1 answer
29 views

Why does process.env.BACKEND_URL log undefined in the console but display correctly in a button in my Next.js app?

I am working on a Next.js project and I have encountered an issue with environment variables. In my Home component, I am trying to log the value of process.env.BACKEND_URL to the console and also ...
user avatar
0 votes
1 answer
49 views

HTTPS Application Loading Insecure Font from HTTP Cache Despite Different Configurations

I have two applications running on the same port (5173). One application uses HTTP and includes a font (YoungSerif-Regular.ttf), and the other uses HTTPS and does not include this font. When I turn ...
MinhSu - Justin's user avatar
0 votes
0 answers
30 views

Getthe exact left and top position of the text content using pdf.js

I am developing a pdf editor similar to https://www.sejda.com/. Is there a way to determine the exact to position the text content (left and top)? I am currently using pdf.js to convert the pdf to a ...
fadaco's user avatar
  • 1
1 vote
0 answers
40 views

Antd <Select> element with <Menu> as the dropdown list doesn't work, Can't load Menu.Item options

The const object defined as such const [selectedItems, setSelectedItems] = useState([]); const options = [ { key: 'A', value: 'A', label: 'A' }, { key: 'S', ...
TOXX DOXX's user avatar
1 vote
0 answers
21 views

Focus on the search input field whenever showSearch state is true

I have a problem trying to focus on the input field whenever a state showSearch state is true. I am using useRef and useEffect to achieve this. So, whenever showSearch flag changes, i run useEffect ...
aavishkar gautam's user avatar
0 votes
0 answers
23 views

How to make a button float in React using MUI?

I want to make an AppBar, and I used the to make the navigation button float, but when it shows on the browser, the Fab acts just like a button and misaligns everything else. How to fix this? In the ...
coding noobieee's user avatar
0 votes
0 answers
34 views

How to create spin animation with react (maybe using framer motion)

I have to write component that will spinning in interactive animation. So, when user opens modal sent above items gonna: Spin until user clicks "открыть" button) Spin faster when user ...
Lama's's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
146