Category "reactjs"

Send a value via EmailJs without using a form

I want to send an EmailJs with two parameters, the email that comes from the form, and the let toysList, that comes from the localStorage(and converted into a s

Webstorm doesn't recognize next js

I'm creating a next JS app using this command npx create-next-app my-app --use-npm And everything is installed successfully, but in WebStorm for example when I

Importing SVG as React component not working with Next.js

I created a project with create-react-app using Typescript and latter I was asked to add next.js to it, what happend was that it broked some svgs across the app

Downloading a file using React and Typescript

I am trying to build a single page app using React. I came up with this hacky way to download a local file (residing in the public directory). I have two questi

React Native conditional render ImageBackground picture

I am trying to set my image based on if my prop is not null. If my prop is not null I need to show image from a web link. If the prop is null then I need to sho

React 16 warning "warning.js:36 Warning: Did not expect server HTML to contain a <div> in <div>."

I'm using the React 16 beta (react-fiber) with server side rendering What I am to understand this to mean? warning.js:36 Warning: Did not expect server HTML t

Socket.io + React: Different classes -> use same socket?

This is hopefully my best take at describing and simplifying my problem: I have my main class for my react app called App in App.js (I use [...] as Placeholder

Uncaught TypeError: inputArgs[0].match is not a function

I am starting to learn to react with REST Countries API. I have to face the error "Uncaught TypeError: inputArgs[0].match is not a function" in console. also, c

Powerapps code components with react and web3

I am doing a very simple powerapps code component project using react and web3. As soon as I build the project, I get a bunch of errors. Many of them I managed

Some component props reset after drop in react-dnd

I'm building a meme generator app. Here is my main component const [inputText, setInputText] = useState<InputText[]>([ { text: "", top: 30, left: 30

"'React' was used before it was defined." eslint warning

Similar question to this post on StackOverflow but I cannot seem to get rid of this warning after trying everything I could find on the internet. Github Issue.

Why is request.user is anonymous in Django RedirectView?

There are a lot of questions similar to this one, but none quite capture the situation I am in. I am coding a Django/ React app and I have integrated with Spoti

Material styling not loading in production build

I'm currently working on a project with Nextjs and Material UI. Everything works great in development mode. When I build the project, the first page loads just

Embed a React component into a HTML site, without affecting the parent site's styling and without an iframe

I have a React component that I want to build and insert into an HTML site. The component has some styling, which if imported will conflict with the HTML site's

How to Use Firebase Phone Authentication without recaptcha in React Native

I want to use firebase phone verification without recaptcha in react native. Below is my code. The code is working properly. But I Don't want to use recaptcha.

import json file in react, webpack config error

I am trying to import a json file into my code. The js file for the same is import React from 'react'; import ReactDom from 'react-dom' ; import $ from 'jquery

Testing axios.create() instance with jest

I tried many solution from this task. I want testing axios instance api call without any libralies (jest-axios-mock, moaxios, msw, etc). I hope it's possible, b

Using axios.post, response.data return html instead of data [Nodejs, React]

What I want is, when I click SUBMIT button, it should post some data using axios.post const sb = async () => { axios.post('/tagSearch',{ qual: qual

How can I connect IPFS with infura when uploading data?

I'm creating an NFT marketplace using hardhat, solidity & Next js, I have a form from where I enter some specific information about the NFT, then by clickin

Export 'AmplifySignOut' was not found in '@aws-amplify/ui-react'

I am fresh new to AWS Amplify, so I am following a tutorial on AWS Build a Full-Stack React Application, it's on Virtual Box with the latest Ubuntu image. Durin