Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
5 replies
73 views

I have Laravel 12 project (PHP, Inertia, ReactJS and Tailwind) project that I need to deploy to a cPanel shared server. I do not have SSH access to the server, and the service provider does not give ...
Rootsman's user avatar
Best practices
0 votes
3 replies
74 views

I am planning to implement pagination into my project for my data from Supabase, I had the idea that since there are different parameters (such as search text, page number, filter) that I should use ...
1million_ naira's user avatar
Best practices
1 vote
4 replies
126 views

I want to hear your personal opinion. And I would like to hear what way y'all prefer when working with React projects. I'm currently working with a full-fledged ecommerce website. I would love to hear ...
Evolved Darrshan's user avatar
Best practices
0 votes
2 replies
93 views

I’m building an e-commerce type website in Next.js where there are multiple sections of stores. Each store card has a heart icon to mark it as a favourite. The same store can appear in: multiple ...
Ali Sadain Tanvir's user avatar
0 votes
1 answer
98 views

I have a simple debounce implementation using `useEffect` and `setTimeout` that delays updating a `value` state by 1 seconds after the user stops typing in an input: import { useEffect, useState } ...
Rohit jagdale's user avatar
1 vote
2 answers
74 views

I'm trying to make a progress bar that has a transition animation. Think: a multi-page wizard, and when you advance to the next page the progress bar animates to the next step. When the progress bar ...
Ivan Rubinson's user avatar
Best practices
1 vote
5 replies
88 views

So, being used other reactive frameworks I'm now starting to learn and work with React. I'm building a simple exercise and I'm struggling with the way State is managed in React, I'll already have ...
Noel Rubio Lavilla's user avatar
-1 votes
1 answer
94 views

I am using TailwindCSS in my React + Vite project, and the classes are loaded correctly. The UI looks complete. The problem is that colors from variables defined in tailwind.config.js are not applied. ...
kobi shunak's user avatar
Best practices
0 votes
2 replies
52 views

I've been reading up on React/Redux documentation, specifically on setting up types for the main redux application store, and was wondering if there are any significant differences when it comes to ...
Talos0248's user avatar
  • 260
Best practices
0 votes
2 replies
51 views

I'm currently learning inertia with react after using livewire and finding myself quite limited so I'm making a sample project that makes invoices to practice making forms and saving data to a ...
Alejandro Bolívar Hidalgo's user avatar
Best practices
0 votes
0 replies
78 views

I use SVG icons in a typescript / react application. The icons are in a SVG file. Every icon has an ID tag (the common way). In code I reverence the icon: <svg className="icon icon-lg" ...
Gerd's user avatar
  • 2,691
-3 votes
1 answer
60 views

I'm looking for a working & elegant solution to assign a default prop value to a React Native core component such as Text. In the past, we'd do something like this and override it at the index.js ...
AndrewHoover898's user avatar
2 votes
1 answer
71 views

i’m building a small AI chat ui in react (next.js app router, react 18) that streams tokens from my backend (openai style stream). basic flow: user types a prompt i push the user message into ...
Eli's user avatar
  • 59
Best practices
0 votes
1 replies
49 views

I’m trying to design a “future-proof” React/JS setup where the app can switch between different AI backends (local models like WebGPU/WebLLM, API models like OpenAI/Gemini, and maybe even custom ...
Eli's user avatar
  • 59
-4 votes
0 answers
66 views

I want to control conditions related to that route in each route instead of building central navigation system in the root route that checks from and to of the navigation event. To that, my idea was ...
Max Koretskyi's user avatar
-1 votes
0 answers
77 views

I have a React (Vite) frontend and a FastAPI backend. I want to protect /dashboard so that the Dashboard.jsx component is not downloaded by the browser unless the user is authenticated. In a normal ...
KaranSRMA's user avatar
0 votes
2 answers
52 views

How to display <NavLink> components inside the Footer? I cannot place the Footer inside RouterProvider. The Footer component should be displayed on every page. function App() { const router = ...
stot's user avatar
  • 1,137
0 votes
1 answer
56 views

I'm currently working on my first NextJS app after a long hiatus. The first thing I'm working on is a small app that's powered by Firebase. After reading some documentation on Context and then ...
MisutoWolf's user avatar
  • 1,273
-1 votes
0 answers
55 views

I have set up my tRPC backend as per the docs which I'll paste in below. My issue is using it with @tanstack/react-query works perfect for 90% of my use cases but I can't physically call my backend ...
frost2709's user avatar
  • 401
0 votes
0 answers
46 views

With the maturity of server-state libraries like TanStack Query (React Query) and the improvements in React's native state management, I'm re-evaluating the necessity of Redux Toolkit for global ...
Ali Ahmed's user avatar
-1 votes
0 answers
54 views

I'm trying to use JSON Forms to create different forms for my website, and I'm using custom buttons and input fields (using custom renderers) to render the form. I'm interested in making the UI right, ...
juztcode's user avatar
  • 1,431
0 votes
0 answers
51 views

I'm working on a project, which uses a react SSR module (using Vite). Then I'm using a seperate worker which loads my site and there's link /load-ssr which loads the SSR module as a "binding"...
AwaisMehnga's user avatar
0 votes
0 answers
74 views

I’m trying to deploy my personal website to Vercel using Vite + React + Tailwind CSS. The project builds and runs fine locally (npm run build works without errors), but the Vercel build fails with the ...
Vinicius Almeida's user avatar
Tooling
0 votes
1 replies
50 views

I have an automated deployment tool that generates a React or Angular project, uploads it to Azure App Service, and then restores node_modules to reduce build time. To avoid running npm install on ...
Shaan's user avatar
  • 11
Advice
1 vote
1 replies
46 views

Here is my on message handler: const onMessage = (event: MessageEvent) => { try { const message = JSON.parse(event.data); const normalizedMsg = Array.isArray(message) ? message : [...
stephano's user avatar
  • 172
1 vote
0 answers
55 views

I'm building an embedded widget as a Web Component using Vite + Tailwind CSS. When the app runs standalone, Tailwind responsive breakpoints (sm, md, lg, xl) work correctly, because they react to ...
Ivan Pruchai's user avatar
1 vote
1 answer
63 views

I have a React application that uses React leaflet to render a map and I can draw a polygon on the map using a function I've written. I want to submit the polygon that's drawn to an SQL database and I ...
Adimirio's user avatar
0 votes
1 answer
53 views

On a React App, I'd like to remove the accessory bar that appears above the iOS keyboard when we are focusing on a textarea. Is it possible ? I tried a few things saw on the internet but nothing works ...
Julien trqt's user avatar
2 votes
0 answers
58 views

I'm building a React Vite application for 3D modeling using react-three-fiber. I recently integrated a microfrontend (MFE) using the module federation plugin and shared React and other core packages ...
saravanan chidambaram's user avatar
-2 votes
0 answers
41 views

I am building a mobile application and the framework I am using is React Native + Expo. When it comes to verifying the clerk's email, there is an error that the verification failed. I received the ...
DucVjt's user avatar
  • 1
-1 votes
1 answer
44 views

how can i resolve this problem and this my jest.config.js module.exports = { preset: 'react-native', "setupFilesAfterEnv": [ "@testing-library/jest-native/extend-expect" ]...
Hela slimen's user avatar
-1 votes
0 answers
43 views

I'm working on a React project where I'm using React-Leaflet and need to display GeoTIFF (.tif) layers on multiple maps within the same page. Overview: I have several Leaflet maps rendered ...
Ravi Ghevariya's user avatar
Advice
0 votes
2 replies
27 views

I have a project in Next JS and I am fetching data from API using TanStack Query. I am also using openapi-typescript package for generating API response types automatically from the openapi.json file. ...
Yash Gorasia's user avatar
-1 votes
0 answers
32 views

I'm facing an issue with the React Compiler auto-memo. React DevTools shows that Test2 is memoized (sparkle icon), but console.log still runs on every render. import { useState } from "react"...
K i's user avatar
  • 615
-1 votes
0 answers
44 views

I am using Radix theme https://www.radix-ui.com/themes/docs/overview/getting-started and I am specifically using the Table component. I want to override default styling for just the Table.Header ...
michaelNL's user avatar
-2 votes
0 answers
38 views

Im having an issue with supabase postgres changes. I have a subscription on frontend to watch for changes on a table using RLS policy to only see the changes of the current user. The problem that im ...
Fausto Sanchez's user avatar
0 votes
0 answers
33 views

Why does updating state in React inside a loop cause stale values even when using functional updates?
Mayank jandu's user avatar
Advice
1 vote
2 replies
71 views

I'm migrating an app from React Router v6 + Webpack to React Router v7 (SPA mode) + Vite and I'm having issues with setting a strict Content Security Policy. In RR6 I had a normal index.html and ...
tykhan's user avatar
  • 131
-1 votes
0 answers
38 views

I have problem with all Inertia projects. When the user opens the page from their browser history it opens a JSON not a React page. How can I prevent this? I have: "dependencies": { &...
ibrahim elshorbagy's user avatar
0 votes
1 answer
28 views

In my react application I have a simple html select that has the multiple attribute set. When the selection changes a server request is issued and afterwards the component is re-rendered. The problem ...
Markuz's user avatar
  • 67
-2 votes
1 answer
27 views

I'm making a pomodoro webapp using React. And want mechanical gear sound when user rotate wheel like setter knob on timers. I have tried with AudioContext and Audio instance but didnt work. With ...
Anupam Thakur's user avatar
-3 votes
0 answers
31 views

When using rspack with typescript and Material UI (MUI) with React to run in development mode, the following error is thrown: _emotion_styled__rspack_import_0 is not a function TypeError: ...
zXynK's user avatar
  • 1,374
-1 votes
0 answers
28 views

I'm using "@mui/x-date-pickers": "^8.19.0" and @mui/material": "^7.3.4" in a "next": "15.5.6" application with "react-dom": "19.2....
S. Hesam's user avatar
  • 7,159
-1 votes
0 answers
27 views

I'm currectly working on a todoapp using reactjs. I have a mytodo, scheduled tasks and completed tasks section. now when I create a new scheduled task, I have the option of moving it from the ...
Tariah Steve's user avatar
-3 votes
0 answers
28 views

I'm new to React and I'm having a problem with Mantine. My Slider is visible and the value updates, but the thumb stays stuck on the left and doesn't move at all. Here is my code: <Box ref={ref} ...
user699701's user avatar
-1 votes
0 answers
25 views

We have a popup functionality that works fine on AEM as a Cloud in Dev and Local environments, but it’s not working in Stage and Prod. Here’s the setup: We are using Sling Model Exporter and an AEM ...
Naveen.P's user avatar
-1 votes
0 answers
24 views

I'm trying to apply the row selection model in React Material UI. Intension here is to show the rowId when a row is selected so that I can show the row action buttons as DELETE/EDIT. I'm using the &...
Abrar's user avatar
  • 13
0 votes
0 answers
26 views

I'm trying to recreate an overlapping box layout where one box appears to "intrude" into another box's border with a smooth, curved notch effect (not just a straight cutout). Here is the ...
BigLadDylan's user avatar
-3 votes
0 answers
35 views

enter image description here I’m building a normal React project (not related to blockchain, crypto, or MetaMask). However, Chrome gives this uncaught error in the console: Failed to connect to ...
Philip Chege's user avatar
-4 votes
0 answers
21 views

A bit lost here, I have the following code running trought expo go and it does nothing on my iPad but it works fine on my phone: import * as LocalAuthentication from 'expo-local-authentication'; ...
Kol4o100's user avatar