Category "reactjs"

upload image using react react and nodejs

i am trying to upload image path in mysql database and show it in homescreen .currently i am having difficulty in storing image path in my sql database and imag

Error while running the command npm install

I'm trying to run a react code and used the command npm install and error(s) pop up: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path C:\Users\AJ\Deskto

Posts text and image to pdf in react

I'm trying to create a blog post website where anyone can post anything. And also any user can download any post in one click. So is it possible to implement a

How to update a single property using PATCH method in Node JS? [closed]

I want to create a PATCH method to update a single property for my API but there is something I don't understand.

mongodb returns matchCount 1 but modifiedCount 0

I was making a web app where a card is showing the quantity of a product. There is a button also named Delivered. After clicking the button, I want to decrease

npm WARN deprecated [email protected]

Even though Ive updated tar to version 8.3.1 it doesn't allow me to install react(npm install -g create-react-app). After I try to install react it outputs foll

Ignore Typescript errors in submodule

I have created a Typescript React project using create-react-app. I have also added a library via submodule. However, Typescript keeps reporting error on the su

Using redux toolkit in NextJS without next-redux-wrapper

I'm new to NextJS and I'm trying to figure out on how to implement RTK, I stumbled on this github repo example from Jack Harrington and basically his slices has

File Upload with axios using redux

Currently, I'm able to test a file upload function. and that looks like this const handleFileUploadSubmit = (event) => { event.preventDefault() const

Custom Alert works only once

I have created custom alert with Modal in react native but it renders only once. This is my component import {Text, View, Modal, TouchableOpacity} from 'react-n

A react app inside a monorepo (lerna) package causing conflicting 'react' package

I created : A reusable react component package, and A react app for testing the component Both of them are inside a monorepo (lerna). The problem is the "react"

Getting "connection failed (403 Forbidden)" error while make connection to python-socketio(socket.io)

I wanted to make a connection on the socket.io so I used python-socket.io in the backend (FastAPI) and socket.io-client for the frontend(React.js) but I have be

Token not received after redirecting from login

I am trying to use AD FS as Identity provider with react-native-azure-auth library. It works fine with iOS, redirects and returns token back from the login scr

Token not received after redirecting from login

I am trying to use AD FS as Identity provider with react-native-azure-auth library. It works fine with iOS, redirects and returns token back from the login scr

Webpack Source Map Export Compiled JS

I was using webpack 3, there was no hot reload issue and then I upgraded to webpack 5. Webpack version: ^5.50.0, React version: 17.0.2 Webpack source map doesn'

Test react custom hook with mocking blob response

I have a created a hook as following: import { AxiosResponse } from 'axios'; import { DEFAULT_EXPORT_FILE_NAME } from 'constants'; import { useRef, useState } f

CypressError cy.visit() failed trying to load https://example.cypress.io/todo

i created cypress project for that i run npm init -y to generate package.json file then npm i cypress to create a cypress project. then opened it via npx cypres

UseEffect firing on initial render

I am creating a front end for an API that requires a user to input both an API key as well as a device name. The issue is that the UseEffect() fetch is firing w

Tag picker onChange event not firing

I'm trying to trigger an event when the user writes something in the input field of Fluent UI Tag Picker but it seems that it's not working for some reason. The

React JS App becomes blank white screen when deployed with AWS Amplify

I have a React JS app that works on local host, but when I deploy to AWS amplify displays as a blank white screen with no body. The browser tab shows the correc