477,232 questions
0
votes
0
answers
17
views
Full Calendar Issue - Appointments not rendering in the correct slot location
hoping someone can advise I am creating appointments in fullcalendar and they are not appearing at the expected time, I have validated the records data multiple times and there are no issues. It is ...
-1
votes
1
answer
25
views
Using mutate inside debounce not triggering the API call?
export function useDebounce<T extends (...args: Parameters<T>) => void>(
callback: T,
delay = 300,
dependencies: React.DependencyList = []
): (...args: Parameters<T>) => ...
-1
votes
0
answers
18
views
Is there a way to add auto-transaction of crypto once wallet a Dapp connects to wallet?
I created a Dapp crypto website. I was able to connect to wallet and fetch wallet address successfully. But I tried to include some logics in other that once a wallet connects to the Dapp, it then ...
0
votes
0
answers
39
views
React Compiler says it is working but is not optimizing in real world example
I am adding React Compiler into our project. The compiler is shown in the devTools as working (the little stars emoji). But when I run a scenario with a component that could be optimized with useMemo ...
0
votes
1
answer
42
views
How to implement onclick function for a map made with React Leaflet
I have a map that I've made in React Leaflet which lets the user draw polygons, and i want the user to be able to click on the polygon and render a modal which lets the user name the area that's ...
Best practices
0
votes
3
replies
66
views
How to efficiently check array item exists in React context?
I am writing a library for Table rendering in React. I want that table to support row selection (each row has it's own checkbox).
I have created context for my table containing state of selected rows (...
-3
votes
1
answer
44
views
How to properly type a state array of objects in React with TypeScript? [duplicate]
I’m working on a React component using TypeScript and I’m trying to define a state variable that holds an array of objects. Each object represents a user with fields like id, name, and email.
import ...
-3
votes
0
answers
24
views
How to integrate MongoDB Atlas with Vercel serverless functions for student records? [closed]
I'm building a course management platform at https://course.thedevs.org with React + Vite frontend and Vercel serverless functions. I need to implement CRUD operations for student records using ...
-1
votes
0
answers
55
views
How should I resolve Minified React error #426? [closed]
Due to privacy concerns and the large amount of code involved, I’m unable to share all of the related code.
I would like to know how to resolve this issue so that it no longer throws an error. When ...
-5
votes
0
answers
92
views
How should I start structuring a full-stack project with React + Vite frontend, FastAPI backend, and PostgreSQL database? [closed]
I’m trying to understand the right way to start and organize a full-stack web app project from scratch.
For example, let’s say I want to build a web app using this stack:
Frontend: React + Vite
...
1
vote
1
answer
94
views
Promise's behaviour inside component without using `use` hook
In this example from react docs, I can remove use hook from const messageContent = use(messagePromise); leaving it like this const messageContent = messagePromise; and it still works (no error is ...
1
vote
0
answers
78
views
React not running anything with custom reconciler
I'm creating my own React 19 reconciler:
export class Reconciler {
get hostConfig(): ReactReconciler.HostConfig {
return {
getRootHostContext: notSupportedYet,
...
-2
votes
1
answer
43
views
Receiving object undefined on backend in socket.io [closed]
I am using ReactJS along with socket.io for building an application.
App.jsx
import { useState } from "react"
import io from "socket.io-client"
const socket = io.connect(...
-2
votes
0
answers
38
views
usestate dose'nt update immidiatly [closed]
I am trying to delete a block from a list of blocks and then update the list block ids using the index.
function handleKeyDown(e, id) {
if (e.code === 'Backspace') {
let blocksCopy = [...blocks];...
-4
votes
0
answers
52
views
Tailwind CSS padding and margin not working after adding to existing React project with manual CSS [closed]
I’m working on a React + Vite project where the existing styling is done using manual CSS files (many .css files in /src/styles).
Since maintaining many CSS files is becoming difficult as the app ...