475,728 questions
-1
votes
0
answers
36
views
React Native keyboardAvoidingView gap on Android with adjustResize
I am developing a chat interface for a sports social marketplace app using React Native (Expo/Bare). Initially, my input field was being hidden by the keyboard, which I fixed using ...
-4
votes
0
answers
60
views
React deleting last item in an array instead of the specified element [duplicate]
I have created a table in React which is rendered from an array. Please see the code below.
For each header there is a cell underneath. There are 10 columns.
When the X button is clicked I want the ...
-3
votes
0
answers
42
views
Why is my React component re-rendering infinitely when using useEffect? [closed]
I am learning React and trying to update a state value inside useEffect.
However, my component keeps re-rendering continuously.
import { useEffect, useState } from "react";
export default ...
0
votes
0
answers
65
views
React 19 use() hook with Suspense boundaries: unexpected re-renders on cached promises
I've been migrating a mid-sized app to React 19 and started using the new use() hook to read promises directly in components. The issue I'm running into is that even with a stable promise reference (...
-9
votes
1
answer
96
views
should i remove the return? [closed]
useEffect(() => {
const handleScroll = () =>{
if(window.scrollY > 100) {
setShowModal(true);
window.removeEventListener("scroll", handleScroll);
}
...
-3
votes
1
answer
93
views
Why is the map method returning my array as undefined? [closed]
Why does the error message appear TypeError: can't access property "map", headers is undefined?
I have defined headers inside a state variable, passed it as props and used it inside a ...
-7
votes
0
answers
72
views
How do I pass AI reasoning metadata to a frontend UI component? [closed]
Background.
I am building AI-powered web applications where the UI renders personalized content — recommendations, pre-filled form fields, and dynamic layouts — generated by an LLM or a backend ...
Advice
1
vote
6
replies
102
views
Creating a Menu with React.js
I need to create a menu with three links using React.js, and they all need to be on one line. So far, I have the links created, but they are stacking up, one on top of the other. I am trying to get ...
Advice
0
votes
9
replies
144
views
What is best, React or Flutter?
What is best, keeping an app written in React or change the app to Flutter?
-1
votes
2
answers
84
views
Why does my custom hook cause an infinite re-render in React even though dependencies seem correct? [duplicate]
I created a custom hook to fetch data and memoize it using useEffect and useMemo, but my component ends up in an infinite re-render loop. I can’t figure out why. Here’s a simplified version of my code:...
Advice
1
vote
2
replies
116
views
How to structure a React project for stock management?
I'm building a stock management project using React (with Redux-Toolkit).
My project includes:
Products
Product variants
Categories
Stock management (add / remove / update quantity)
Forms (create/...
Advice
0
votes
8
replies
91
views
Need Suggestion for best MERN stack online course?
Can you recommend me a MERN stack course according to the current industry demand and the below listed constraints?
The constraints are: -
Budget is around 25k INR.
Course duration should be around ...
-1
votes
1
answer
65
views
React Three Fiber SkinnedMesh (6.4MB) fails to render on mobile browsers but works perfectly on desktop [closed]
I am building a web-based 3D interactive project using React Three Fiber. The model is a character with skeletal animations (SkinnedMesh) generated by an AI tool.
The project works perfectly on ...
Advice
0
votes
0
replies
51
views
open WeChat app directly from ReactJS app for seamless integration
i have CRM dashboard made with ReactJS, client asks for integration with WeChat so he is able to send invoice data to WeChat as a .xlsx file, doing research i read that we can't open WeChat directly ...
-1
votes
0
answers
85
views
How can I stop ReactGridLayout elements from resizing when the containing window is resized?
I want to be able to expand the size of the window, and the datagrid, to cover two monitors, so the user can move elements around freely and resize them manually as need be, but I do not want the ...