Category "reactjs"

trying to create a new react project by (create-react-app) it is not working properly

I installed latest version of node.js, react.js and next.js Everything worked properly but at the point I try to create my react project folder in the terminal

How do I clone a AWS instance?

I had a developer create a react app and he hosted it on AWS. He never sent us the code and stopped responding. I'm trying to edit a few things on the app but I

Can't perform a React state update on an unmounted component. memory leak in my function

this is the image Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, can

Django REST Framework Render a result from an hyperlink in API response

I am building an application with a DRF/React stack, and I have a bit of an issue. I am using a HyperlinkedModelSerializer to be able to easily make a GET reque

is there any difference between this commands to install webpack? "npm install webpack webpack-cli --save-dev" & "npm install -D webpack webpack-cli "

Hello everyone I´m learning about webpack and i saw this two ways to install it, I was wondering if there is any difference between this two ways: this on

How do I validate user in reCAPTCHA v3 in react.js?

I am using the library "react-google-recaptcha-v3" for reCAPTCHA in React. I have a SignUp component, which essentially is something along the lines of a form w

Sphere not rolling straight

First time poster, long time (copy/)paster. I am making a pool/billiards game using React-Three/Cannon for physics, which is pretty much Cannon ES but with a la

How can I fetch data from a graphql structure which is in github?

I have a link to this repository ( https://github.com/scandiweb/junior-react-endpoint ). My question is, how can I clone this graphql structure to my react proj

Can't access state object in child component with React/TypeScript

I'm a beginner at TypeScript and I'm trying to access my state object (from App.tsx) within Questions.tsx. So I want/need to access for example chosenAmount in

When i fetch Heroku deployed a link, there is an error 500 (Internal Server Error)

If i used http://localhost:5000/login everything is working. When i used live link https://auto-shoroom.herokuapp.com/login there's the error POST https://auto-

Uncaught (in promise) Error: Invalid hook call. - SPECIAL CASE

I know that hooks cannot be called from functions other than React Functional Components, this is a bit different. I have created some utility/service type func

Tailwind CSS classes not updating after initial build of react app

I decided to bite the bullet today and upgrade from tailwind v2 to v3 for my react app. The upgrade went well, but I now have a problem where after I run "npm s

Unexpected token in JSON at position 0 when running npm start in React Typescript project

Whenever I try to run the 'npm start' command, I get this weird error. It was working fine a few hours ago and now it simply won't start. I've tried reinstallin

Cannot properly concat to an array in ReactJS when using useState hook

I have a button that increments a vote counter whenever it is clicked, however I am having trouble implementing it. When I first click the Vote button, the func

Error: Unexpected "<" in vite react in JS files

I am making a react app with vite instead of creat react app. When I use .jsx as suffix, it works fine. But when I use .js, throws hundreds of errors in my file

"react" was conflicted between "package.json » eslint-config-react-app

I want to know, why this problem happens sometime. I overcome it by opening the desired folder with code directly. But can't use git bash. And saving package.js

How can I use reactjs useState hook without broke my react app?

When I try to add my Home-index.js useEffect hook my web page completely gone. Here is my codes. index.js useEffect(() => { return setTimeout (() => {

How to call a function immediately

I write my request in my parent Component with code below: useEffect(() => { // my request }, []) As we all know, useEffect of parent component will imple

Axios POST with the server responded with a status of 500 (Internal Server Error)

I'm using ReactJS to build a blog app. I can use axios get, put, delete but NOT POST. Every time I post a new blog, it gives me server responded with a status

Css and Js not working after deploying the next+react project to server side

I have React+next and node js projects I want to deploy that project in one port. For that, I created ts file to js and ran the. next folder to the backend side