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.

-1 votes
0 answers
7 views

How do I add an external JS and use its function in my component in REACT?

I've been struggling on how to do this, I just want to import an external js and use it inside my function, however doing that gives a lot of errors whether React cant append child with async or the ...
Vency Degracia's user avatar
0 votes
0 answers
6 views

Does @preact/signals-react work with concurrent mode of React 18?

React 18 enables concurrent mode by default -- at least in the Creact React App generated starter index.js. However, tired with the complexity that comes with a hooks based application design, and the ...
Harry's user avatar
  • 3,813
0 votes
0 answers
10 views

What should my vercel.json config file to deploy my MERN stack given my current project folder organization?

I am trying to deploy my MERN stack on vercel but I can't get much documentation on what the vercel.config file should contain. This is how my Vite (npm create vite@latest) MERN project is structured: ...
jlimsy's user avatar
  • 3
0 votes
0 answers
8 views

How to Change the Initial Perspective of CameraControls?

I've written a React component where I'm trying to change the initial perspective of CameraControls, but I haven't been successful. Does anyone have any ideas? The code to change the position of the ...
Chaong's user avatar
  • 90
0 votes
0 answers
14 views

How do I resolve styled_components__WEBPACK_IMPORTED_MODULE_2__.div is not a function?

I am trying to create a custom styled component using react native, here is my code for the styled component, but when i run yarn dev, i seem to get this error import React from 'react'; import styled ...
Runjia Chen's user avatar
0 votes
0 answers
11 views

Nextjs 14 right way call server actions or to update url params

I'm using nextjs 14 with server side actions. My issue is that everytime that I try to set new params it takes a lot to update them. I guess this is because the whole route is refreshed so the server ...
Luis Quiroga's user avatar
0 votes
0 answers
8 views

How to lazy import React component js build by vite in **tauri2**?

I want to dynamic import some client pages for my host page after click one button in tauri2. The client pages are external library, and they are written using ReactJS. Something like this: import {...
Jwei Y's user avatar
  • 5
0 votes
0 answers
7 views

EPIPE error when starting Vite and React project

I'm facing a problem when trying to start my application using Vite and React, published through Jenkins and monitored by Grafana. The EPIPE error occurs repeatedly, and the application constantly ...
Wesley Raeel's user avatar
0 votes
1 answer
14 views

Passport JS + React application internal 500 errro

I am creating a general chat application with react, and am stuck while trying to authenticate a user. The axios post request raises a 500 error that I cannot track anywhere. When I put in correct ...
Mac Pickle's user avatar
0 votes
0 answers
5 views

Calculating the area of packaging dieline from DXF file using JavaScript

Here my dxd file dieline image dxd file dieline image I want to calculate the area of dieline in dxd file Heres my dxd file: https://drive.google.com/file/d/1crCl0uiSOHN4idBfQVTUIu6BJ0ZdhS5-/view?usp=...
Hammad Nadir's user avatar
-2 votes
0 answers
20 views

I want to change the color of the body, but it takes up the entire screen [closed]

I'm creating a web page about a weather app, but I have a problem with the background-color of the body. I gave the bodysuit the background color #191a38. Inside the body I have a main with the ...
Cuentas Internet's user avatar
0 votes
1 answer
21 views

How can I test a React app when running on a different host to production?

I'm having a bit of a mental block trying to figure out the most straight forward way to test a React app locally. Here's how the app is setup in production: There is a single prod server, which ...
FreelanceConsultant's user avatar
0 votes
0 answers
10 views

Html Webpack Plugin: Error: Child compilation failed: how should I have to solve it

I'm facing with this error Compiled with problems:X ERROR in ./src/scenes/Home/Intro.js 6:0-40 Module not found: Error: Can't resolve 'react-particles' in '..... \React-Portfolio-main\React-Portfolio-...
Mirian's user avatar
  • 3
0 votes
0 answers
18 views

vulnerability fix npm react js spring boot heeeelpp

PLEASEE HELP nth-check <2.0.1 Severity: high Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr fix available via npm audit fix --force Will ...
nice aah's user avatar
-1 votes
0 answers
17 views

What's the difference between component as prop or rendered component as prop (see examples below)

Let's say I have a conponent name Child: const Child =(props) => <div {...props}/> and a parent component Parent, getting this component as prop named ComponentProp. What is the difference ...
yoty66's user avatar
  • 550

15 30 50 per page
1
2 3 4 5
31958