475,726 questions
0
votes
0
answers
12
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 (...
-5
votes
1
answer
55
views
should i remove the return?
useEffect(() => {
const handleScroll = () =>{
if(window.scrollY > 100) {
setShowModal(true);
window.removeEventListener("scroll", handleScroll);
}
...
-3
votes
1
answer
66
views
Why is the map method returning my array as undefined?
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
60
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
5
replies
71
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
131
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
72
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
0
votes
1
replies
62
views
How to make a dialog close when pressing Esc key?
I was told it is possible https://github.com/mui/material-ui/issues/48394 but the docs do not mention this at all.
Advice
1
vote
3
replies
112
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
88
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
61
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
50
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
80
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 ...
Advice
1
vote
4
replies
110
views
How should I structure a 50-day learning plan for React and Node.js as a beginner with JavaScript basics?
I have basic knowledge of HTML, CSS, and JavaScript (functions, arrays, objects), but I have not built any real-world projects yet.
I want to learn full-stack development using React (frontend) and ...
Advice
0
votes
3
replies
136
views
React useState not updating inside setInterval even with functional update
I'm building a simple timer component in React using setInterval to increment a counter every second. However, the state variable seconds never updates inside the interval callback – it always logs 0, ...