476,922 questions
-1
votes
2
answers
26
views
Css styling error with Reactjs : Container gets shifted with use of viewport width
So basically I have this problem with the viewport width not working as wanted in reactjs. I just want to make a simple design with the page having a background and a timer across with a blurred ...
Best practices
1
vote
0
replies
33
views
I want to improve my program thats about a React Tasklist
We need to make a program for school, it works just fine I let gemini do some comments, they are in german tho, I could change it to english if I need to, I would like to know how I could improve it. ...
0
votes
0
answers
28
views
Cypress E2E test - override accountContext value
Background
React SPA with AWS Cognito for authentication. We have a page with restricted access; users must be a member of <groupA> in order to view /restricted_page.
At login, we have:
const { ...
-4
votes
0
answers
42
views
SPA with lazy routes: handle new release bundle without crashing [closed]
I have a React single-page application with lazy imports and lazy routes.
The problem is common: when I build a new bundle, release it, and then try to fetch a lazy-loaded component, the app crashes. ...
0
votes
0
answers
21
views
Ant Design X-axis label in vertical needed to be straight using of Column
This is my config file for Column of Ant Design
const config = {
data,
xField: 'ruleLabel',
yField: 'ruleCount',
xAxis: {
label: {
autoRotate: false
}
},
style: {
...
-1
votes
0
answers
22
views
PrimeReact <Chips> adds the chip after typing only ONE character in Microsoft Teams (SPFx React App)
I am using PrimeReact in an SPFx React application that runs inside Microsoft Teams.
The component behaves normally in a browser, but inside Teams it automatically adds a chip after typing just one ...
-2
votes
0
answers
34
views
BurpSuite reports “PHP source code disclosure” inside React build chunk file — but app has no PHP [closed]
I’m working on a React (Create-React-App) project that is deployed behind CloudFront + S3.
Our application is 100% frontend JavaScript — we do not use PHP anywhere in our codebase or backend.
However, ...
-2
votes
0
answers
36
views
Next.js yt iframe background video not autoplaying on IOS [closed]
I have used this <iframe> in the header to make the video work as a background autoplaying video. It works fine on desktop and Android, but it does not work on iOS. On iOS the video stops at the ...
2
votes
1
answer
24
views
Trying to change div colors based on incoming websocket data in React
I have this React App which uses a django API and everytime websocket data comes in, the displayed prices in my app are changed, my goal is that when they change they flash red/green for about 0.5 ...
-3
votes
0
answers
35
views
What should be surl and furl in my payu native cordova sdk [closed]
export default function PayUMoneyPayment({ data }) {
const handlePayuNativeCordovaMobilePay = async () => {
const key = "xyz";
const txnid = "txn_" + Math.random()....
-3
votes
0
answers
35
views
VS Code "Cannot find module" and empty pnpm list output despite successful install in a nested project
I recently reset my laptop and set up a fresh development environment on Windows. I installed Node.js (LTS) and pnpm. I cloned my repository, which has a nested folder structure.
Directory Structure:
...
0
votes
0
answers
40
views
How to reset all useState values in a React component without manually calling every setter? [closed]
I am working on a React/Next.js component that has a large number of independent useState hooks (potentially 50–100). A simplified version looks like this:
const [name, setName] = useState(""...
0
votes
1
answer
40
views
React useEffect with div reference dependency updated on first setState in component [duplicate]
Here is minimal component code. I can't figure out why Container ref effect is being called twice. First when div is actually created, second time when increment button is pressed for the first time. ...
-1
votes
0
answers
21
views
hasMorePages Ignored When Returned Row Count < Page Size [closed]
I’m using React with AG Grid Server-Side Row Model (SSR). I have a situation where the backend returns fewer rows than the page size, but still indicates that hasMorePages = true because the user has ...
-2
votes
0
answers
28
views
Why is my setter is grabbing the wrong ID? [duplicate]
I'm using Firebase for my database, as well as HTML, CSS and jsx for the frontend.
I have the following dropdown menu:
<select
className="seleccionar-empresa"
...