476,902 questions
-1
votes
0
answers
19
views
Sidebar functionality without duplicated code
I'm refactoring my website right now, and I'm new to Next.js. All the tutorials I've found online have been super helpful, but something I still don't get is how to set the class name of a div in A....
0
votes
0
answers
21
views
How can unsafe React Server Component deserialization paths like those exploited in React2Shell (CVE-2025-55182) be reliably detected and secured?
I’m researching the internal behavior of React Server Components (RSC) and the Flight protocol, specifically in relation to the React2Shell vulnerability (CVE-2025-55182).
This exploit abuses the $@ ...
0
votes
0
answers
30
views
404 (Not Found) on localhost http://localhost:5173/ [closed]
vite react node project
404 (Not Found) on localhost http://localhost:5173/
Frontend
useEffect(() => {
const fetchData = async () => {
await axios
.post("http://localhost:...
0
votes
0
answers
52
views
Stale props in client component embedded in ISR-rendered server component
In a NextJS16+ app using app router, assume the following server component:
const getData() = async () => {
"use cache";
cacheTag("data");
return databaseCall();
};
const ...
Best practices
0
votes
3
replies
83
views
How can we use AI, and what is the main purpose?
My meanings and thoughts are related to pure purpose. Also, in particular case what about the JavaScript projects. Best practices to integrate. Can we use it in old projects or the best ways are ...
0
votes
1
answer
31
views
How can I import React components in an Electron app?
I am trying to import a React component Menu.jsx from App.jsx in my Electron app. No errors are showing up, but nothing is being rendered and are not added to the DOM (the body is empty when I looked ...
-3
votes
0
answers
35
views
react native expo , my app keeps crushing when I am trying to open it immediatelly [closed]
https://github.com/sabaPhruidze/Saunje . built the react native expo project. where I used map, expo camera, expo gallery and firebase for backend many other things. it works perfectly in the expo app....
-1
votes
0
answers
23
views
HMR Failure: Component Changes Not Forcing Visual Redraw [closed]
I am encountering an issue with Hot Module Replacement (HMR) in my Storybook environment while developing with React Konva and Vite.
When I change code in my custom Konva shape component (KonvaElement....
-6
votes
0
answers
77
views
Building an installation script for a single CLI with React Ink and a python core backend [closed]
I'm looking for a method to seamlessly install an application that has a react interface (or front-end) and a python processing where the communication could be through json-rpc or IPC.
We can do npm ...
0
votes
2
answers
62
views
SwiperJS coverflow not showing middle item
i need some help with react swiperJS.
Im trying to do coverflow animation, but whenever i refresh the page it always stuck on the last item.
i only have 3 items to show.
But when i add 5+ items it ...
2
votes
1
answer
42
views
Zod email validation issue
Issue
I'm working on a React application and wanted to try the newest version of Zod (4.1.13) for input validations along with react hook form. I've been struggling with the z.email() function as it's ...
-1
votes
0
answers
28
views
Why doesn’t a deleted child component receive notifyNestedSubs() in React-Redux v9 with useSyncExternalStore (synchronous dispatch)?
I’m debugging a subscription-ordering issue in React-Redux v9 (React 18, modern useSyncExternalStore-based subscriptions). I have a parent component that conditionally renders a child based on Redux ...
-1
votes
1
answer
23
views
Nextauth: Sign out to callbackUrl in server-side component
On sign-in, NextAuth sets a cookie next-auth.callback-url which points to the page where you were going when the login kicked in, even if its URL is protected in your matcher.
On sign-out it goes back ...
Best practices
0
votes
4
replies
77
views
How to mount React component from plain async function and resume after user input?
I need to capture some user input in the middle of an async function and then continue the function after the user responds.
Conceptually, something like this:
const getUsername = async () => {
//...
-6
votes
0
answers
28
views
I using React js and fetching Swiggy api to fetch restaurants details but getting this error [closed]
import useRestMenu from "./utils/useRestMenu";
import { useParams } from "react-router";
import Shimmer from "./Shimmer";
import useRestMenu from "./utils/...