-
New Jun 7, 2026
Next.js build fails at closing tag [closed]
I am deploying a Next.js project to Vercel and the build fails during next build. The error points to the closing </Layout> tag in pages/index.js and shows "Expression expected"...
-
New Jun 7, 2026
Where to fetch and store global data (user, venue, socket) in React [closed]
In large applications we need global data, which means some data needs to be fetched first/globally, For example user data needs to be used in whole app Current selected venue data needs to be used i...
-
New Jun 5, 2026
How can I measure whether React dynamic imports are actually improving application performance?
I am working on a large React application and have started using dynamic imports with React.lazy() to reduce the initial bundle size. Example: const Dashboard = React.lazy(() => import('./Dashboa...
-
New Jun 4, 2026
Absolute positioned dropdown menu getting clipped at right edge of viewport [closed]
I'm building a React expense tracker app with Tailwind CSS. My navbar has a user profile dropdown menu that cut off at the right edge of the screen instead of rendering fully vi...
-
New Jun 5, 2026
How do I generate SEO-friendly meta tags in React?
I'm developing a React-based website and want to improve its SEO performance. Since React applications often render content on the client side, I'm looking for the best way to manage dynamic meta ta...
-
New Jun 2, 2026
React Query returns stale data after mutation even though query invalidation is triggered [duplicate]
I am using React Query to manage server state for a user management page. Users can update profile information through a form, and after a successful update I invalidate the related query so that fr...
-
New Jun 2, 2026
React useEffect cleanup function not running when component unmounts inside conditional render
I'm building a chat component that subscribes to a WebSocket when mounted and should unsubscribe on unmount. The cleanup function in useEffect doesn't seem to fire when the component is re...
-
New Jun 2, 2026
How do I use useRef as input in a function with TypeScript? [closed]
I am trying to make an automatic scroll preference in production environments. For the scrolling utility for my React website I have chosen TypeScript due to what I have heard about its ability to ca...
-
New Jun 1, 2026
What is the best strategy for managing permissions and role-based access control (RBAC) in a large React application?
I am working on a large React application that supports multiple user roles such as Admin, Manager, Editor, and Viewer. Each role has access to different pages, components, actions, and API op...
-
New May 31, 2026
Confused about React TypeScript function and function component declarations
I'm wondering why some ways of declarations are valid while others are not and are throwing errors as shown below: Correct export const useDebounce = <T,>(val: T): T => { const [debounce...
-
New Jun 8, 2026
(Partial) React hydration of dynamically created documents
I'm developing an extended dialect of Markdown. I want to make certain elements interactive and am aiming for a SSR/hydration approach using vanilla React. However most of the document is &q...
-
New May 28, 2026
window.addEventListener() keeps triggering multiple times in reactjs [duplicate]
I'm building a music player in ReactJS, and for that, I wanted the audio player to be toggled between playing and paused when the space key is pressed. So, for that, I added an event listener...
-
New May 27, 2026
Advice needed on a React application with Laravel backend
I'm currently working on a personal project related to Warhammer. Because I needed to test some things, I have made an test project for a quiz that would help select a faction. But I'm kind of st...
-
New May 24, 2026
Convert React script running using a CDN to use server installed React [closed]
This code <script crossorigin="" src="https://unpkg.com/react@18/umd/react.production.min.js"></script> <script crossorigin="" src="https:/...
-
New May 20, 2026
Next.js API route getting called multiple times in development mode [duplicate]
I am working on a Next.js application with App Router and noticed that my API route is getting called twice during development. I have a simple fetch inside useEffect...
-
New May 20, 2026
How to create a facebook like newsfeed?
I am working on a social media platform and have a feeds page, when user scroll down the feeds page we have to show the author, newsletter recommendations, currently I have hard coded this showing fe...
-
New May 25, 2026
Are the @eslint-react/no-unstable-default-props and @eslint-react/no-unstable-context-value rules still relevant in React 19?
I noticed that the ESLint React rules no-unstable-default-props and no-unstable-context-value are disabled by default. They seem to be useful rules regarding avoiding unn...
-
New May 22, 2026
Redux Toolkit vs Zustand: which is better for global state management in a Next.js e-commerce app?
I am building an e-commerce application with Next.js and I need to manage global state for features like cart, user authentication, and product listings. I have experience with both Redux Toolkit a...
-
New May 20, 2026
Inline ref cleanup throws TypeError: Cannot read properties of null during concurrent transition rollbacks
I recently upgraded our application to React 19 and started refactoring our legacy useEffect DOM cleanups to use the new Ref Cleanup Function feature (where callback refs can return a cleanup functio...
-
New May 17, 2026
Trying to build UI using react tailwind not able to figure out how to get he desired output [duplicate]
I'm trying to build a UI where a large heading partially reveals an image inside the text while the remaining part of the image stays visible normally below the text. Layout idea...
-
New May 17, 2026
Alert when the user leaves the Text Editor
i need to alert to the user when he´s going to leave the URL where i have an Text Editor. I´m working with React + JS. I declare an state that´s change to true when the user starts typing on the Text...
-
New May 17, 2026
What is the best practices for react object update for a react js
I want to know about what are the best practices for React hook useState object update so not lose data and give always latest state even I use nested methods and update continuously. W...
-
New May 28, 2026
React DevExtremee - Rows are labeled incorrectly in the DataGrid [closed]
I've added listeners to my app that are supposed to select a row and, when I press Shift + Up or Down Arrow, select the next rows. It works fine until I reach the bottom or top edge, at which point th...
-
New May 13, 2026
Why does useEffect cause an infinite re-render loop in React? [duplicate]
I'm currently learning React hooks and encountered an issue where my component keeps re-rendering infinitely. I expected the effect to run only once after updating the state, but instead the component...
-
New May 19, 2026
How to make a RSC form with server action?
With the exciting features of RSC and server action released by React 19, we are going to use them to build a high-performance form. Here is our trying: We build a very small client-component...
-
New May 11, 2026
Script warning in Nextjs [closed]
I need help, I keep getting this script warning in Next.js version 16. I am trying to do light mode and dark mode using next-themes ## Error Type Console Error ## Error M...
-
New May 7, 2026
How do I create an authentication feature with FastAPI and React?
How do I create an authentication feature with FastAPI and React? What tools can I use for this? Is using FastAPI-Users sufficient? Or are there other similar libraries? I also found a note in the Fa...
-
New May 16, 2026
How to properly fetch data inside useEffect without causing unnecessary re-renders or bugs
I'm currently learning React and working on improving my frontend development skills. I understand the basics of JSX, components, and props, but I'm struggling with more advanced concepts like st...
-
New May 12, 2026
How to handle 1 million requests per minute or 10k per second in a full stack application from user interface to backend
what are the performance techniques that we need to apply at each layer of our application development and deployment so that it will handle huge number requests . lets consider React JS...
-
New May 5, 2026
How to preserve image filename in Quill JS when using base64 inline images?
I am using Quill JS (React) to compose emails. When I upload an image, Quill converts it into a base64 string inside the <img src='base64datas....'> tag. However, I need the original filena...