Skip to main content

Questions tagged [reactjs]

React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be efficient and flexible.

reactjs
0 votes
0 answers
4 views

AxiosError {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST')

I am using Nextjs and trying to fetsch the edamam api. I have a search input field to search using Axios. Not sure why am I getting the error. AxiosError {message: 'Request failed with status code 400'...
1 vote
1 answer
509 views

How to resolve "Rollup failed to resolve import fsevents" during vite build

In the process of updating Vue 2 to Vue 3 in development everything is working as expected. The development machine is Windows. But when building the following error is thrown: Error: [vite-plugin-...
0 votes
0 answers
2 views

AWS Amplify Social Login (Google) cookies issue

Im unable to create the session cookies for the Social Login. Funny thing is that the session is workin with email and password but not when social login is made. In Localhost enviroment the cookies ...
0 votes
0 answers
6 views

Error in date typing using the z.input and z.output method

I have a service registration modal in which the user can initially enter a date in Date type, but it is sent to the API as a string in the future. I've used the z.input and z.output methods to deal ...
0 votes
0 answers
11 views

React app fetch request from IP address if no domain name is available

I have written a React application (React+Vite) which makes some fetch requests. Here is an example: const fetchRows = async () => { let rows = []; const response = await axios.post( 'http:/...
0 votes
1 answer
10 views

How can I add keyboard support to my calculator program in ReactJS?

I am making a calculator program in ReactJS and am trying to add keyboard support to my program (as in the keyboard can be used instead of the buttons on the screen). Currently, the onscreen buttons ...
0 votes
0 answers
12 views

Next data mutated between backend and frontend

I use Next.js 14.2.4 (app router) and React ^18. I have a backend file with a function that returns some post comments: "use server"; import { getDriver } from "../../../neo4j"; ...
0 votes
0 answers
8 views

Display flex is not taking affect in my website - I am making a food delivery application in react

enter image description here This is the code for the navbar's right side menu items. And down below is the output in the browser: enter image description here I have inspected and checked the console ...
1 vote
0 answers
18 views

Debugging auto scrolling custom carousel in React

I'm trying to create a carousel in React, and build is working perfectly. I am passing a json array of 4 objects. And I expect the carousel to work as below. show slides 1,2,3 - 2,3,4 - 3,4,1, - 4,1,2 ...
0 votes
0 answers
9 views

What is the compatible version of storybook addon theme?

I want to configure custom theme classes in my nx angular application. I just installed storybook version of 7.5.3 and storybook-addon-themes 6.1.0 which is latest version of custom theme ...
1 vote
1 answer
21 views

Learning Django without DTL [closed]

I just finished my second React course and become more confident with it by creating a several web application. Now my plan is to go fullstack, I decided to start learning Django because am kinda good ...
0 votes
2 answers
801 views

React.js - How to check if the div is at the bottom of the screen (dynamically)

Is there any way to check if the div is at the bottom of the another div (acting as a parent, or container). What I tried So basically I made demo where there are child elements (items, setItems) in ...
14 votes
3 answers
6k views

create-react-app + nodejs (express) server

I am using NodeJs + React in my application. I am using express in NodeJs. I created my sample app using 'create-react-app' npm. I used NodeJs for calling the oauth token from react app. I mentioned ...
0 votes
0 answers
20 views

Spring Boot + React application: list from GET request not appearing on webpage

I'm a beginner and have been trying to learn web development by creating a basic full stack banking web application with spring boot for backend and react for the frontend. Its been going decently, ...
0 votes
0 answers
9 views

VITE:Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type

I am seeing the following error in the browser when I launch my web page for production. Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of &...

15 30 50 per page
1
2 3 4 5
32080