475,795 questions
Advice
0
votes
2
replies
35
views
How would i sign a user out once the jwt token expires in react?
I currently get a jwt token from my backend and save it in my localStorage, and i would like the session to expire after a certain amount of time, and automatically sign the user out, what would be ...
-2
votes
1
answer
58
views
How to use of thunks with useContext/history/location in React/Redux
I am currently working on an application that has a large amount of duplicated logic shared across its components. One of the primary reasons for this is the components are using a Context component ...
0
votes
0
answers
39
views
Motion: How to combine parent staggerChildren with individual animations when dynamically adding items?
I am building a dynamic list in React with Framer Motion. I want to achieve two goals:
When the list initially mounts, the items should animate in sequentially using the parent's staggerChildren.
...
-3
votes
0
answers
40
views
React native expo Facing Route erroe [closed]
I am encountering an issue with my running app. Does anyone know a solution?
I have been searching for a solution for two days but am not getting any answer.
-2
votes
1
answer
39
views
How to automatically clear Next.js cache folder in production? [closed]
I’ve noticed that my Next.js application keeps accumulating cache over time in production. After a couple of weeks, the cache size grows significantly (40–50GB), and much of it appears to be ...
2
votes
1
answer
52
views
Why Does startTransition Trigger High-Priority Updates and Re-renders Even Without State Changes?
I came across the following statement:
Calling startTransition, even if no updates are triggered inside it, will still cause both a high-priority update and a low-priority update.
To check this ...
Advice
0
votes
0
replies
35
views
How to set dynamic meta tags in a React SPA so they are visible to search engine crawlers?
I’m working on a React-based website where most pages are rendered dynamically. The issue I’m facing is that meta tags like title and description are not being properly indexed by Google for ...
-4
votes
0
answers
34
views
Designing Fully Isolated Per-Tenant Build & Deployment System (like Vercel/Shopify) — Architecture Guidance Needed [closed]
I’m trying to design a multi-tenant platform where each tenant (store) is deployed as a fully isolated application, similar to how platforms like Vercel or Shopify handle storefront deployments.
🎯 ...
-2
votes
0
answers
65
views
How to fix Network Request Failed from API, React Native and Flask Python?
I am trying to build an app with my own API. The API is created with Python using Flask. My API runs on local port 5000 and my IPv4 address is 192.168.0.195.
The API service code looks like this:
app =...
Advice
0
votes
3
replies
41
views
How do I deal with a bookinglist in a vehicle management system
How do I write a code in reactjs for a booking list to enable an admin be able to get all bookings made by customers and be able to accept and reject the bookings while the customer on the other hand ...
Advice
1
vote
1
replies
55
views
How to dynamically update SEO meta tags in React using native DOM API without third-party libraries?
Problem
I'm building a React app with Vite (not Next.js) and I need to manage SEO meta tags properly across all pages. I need:
A site-wide title template like %s | My Site applied automatically on ...
-2
votes
0
answers
27
views
Tailwind install error “could not determine executable to run” in Vite + React + TypeScript [duplicate]
I’m setting up a new frontend project using Vite with React and TypeScript. When I tried to install Tailwind CSS using the standard steps:
npm install -D tailwindcss postcss autoprefixer
npx ...
0
votes
1
answer
102
views
How do I pass props to a function component in TypeScript? I am receiving an error that it's type is not a valid JSX element type [closed]
Error:
Type '{ activeHeader: boolean; activeMenu: boolean; }' is not assignable to type 'IntrinsicAttributes & boolean'.
'MobileHeader' cannot be used as a JSX component.
Its type '(activeHeader:...
-2
votes
1
answer
39
views
Is there a supported way in Next.js App Router to fetch user data on the server, pass it into global UserProvider, and still keep static pages static? [closed]
My app structure is:
A root layout (app/layout.tsx)
A shared Header component, rendered on all pages (including static pages like home/about)
Inside the header, an AuthButtons component that should ...
Best practices
1
vote
3
replies
60
views
Should I migrate from a React SPA (using React Helmet for SEO) to Next.js and split the project into a marketing site (SEO) and an authenticated app?
I have a React application built as a client-side SPA.
For SEO, I am using react-helmet to set page titles, meta descriptions, and Open Graph tags per route.
The problem is that organic traffic from ...