Category "reactjs"

I can't fix error while importing web3 in React

I only want to import web3 in react, but always I see errors like below (7 errors!). I've installed the 'crypto-browserify', 'stream-http', 'https-browserify',

react-dom installed, but not found. `Could not find module in path: 'react-dom/client' relative to`

Here is the Codesandbox I want to run a rest, but the Tests tab shows this error. Could not find module in path: 'react-dom/client' relative to '/node_modules/@

antd Table Summary

I have an antd table where I want to summarize columns in the footer. However, I'm having issues getting them to line up properly with my columns. I've tried t

How to adjust font size to fit view in React Native for Android?

How I can make the font size of the text auto change inside a view in react native? I have text with different lengths, some of which doesn't fit the view so d

Attempted import error: 'Wallet' is not exported from '@project-serum/anchor'

Trying to import the Wallet class but getting error in title at runtime. This issue apparently should have been fixed in v0.21+ but it doesn't appear to work in

Unsubscribe from watchPositionAsync with useEffect return function

Using react native with expo-location for a mobile app, I would like to unsubscribe from Location.watchPositionAsync which returns a promise with a remove() met

'react-scripts' is not recognized as an internal or external command

I've got a maven project, within which is JavaScript project cloned as a git sub-module. So the directory structure looks like mavenapp/src/main/javascript/[npm

Getting "Unreachable code no-unreachable" in ReactJS

I am new to create GET requests in React. I am trying to fetch media_id from Instagram Content when someone enters the url in the input field. The interesting t

Using client certificates in ReactJS

we are building a React UI platform website. We need to call a third party RESTFul service which requires us to attached a client certificate for authentication

Minimal input width growing with value

I have a form in react app which has labels on the left side inputs for values + units on the right side All elements uses display:flex by default. I need the

passing binary data to rest-api

I want to upload a thumbnail to viemo api , and based on Vimeo doc, I must include the thumbnail file as binary data in the request body, I have to upload the t

A component is changing an uncontrolled Autocomplete to be controlled

Can you tell me that why I'm getting error "A component is changing an uncontrolled Autocomplete to be controlled. Elements should not switch from uncontrolled

cors issue with passport.js google oauth strategy

I have a setup as such: -backend -model --User.js -routes --auth.js -database --connection.js -passport --passpo

TypeScript error in directory/node_modules/@antv/g6-core/lib/types/index.d.ts(24,37): Type expected. TS1110

After cloning the repo from GitHub and installing packages by running yarn install, when I'm run the project getting this error. I tried to update react script

Issue with Material UI Icons npm installation : unable to resolve dependency tree

I was trying to install Material UI Icons in my Netflix-Clone React.js project with npm, but I got the following error - PS D:\REACT Projects\netflix> npm i

Notification send to user in nodeJS

Following code is for back end which is implemented in NodeJS for socket call. const socket = require('socket.io'); let Users = []; module.exports = function

React application on production - links don't work when requested directly, they work only when accessed by react router

I have deployed an application on a ubuntu server. I ran npm run build, and copied all the content of build inside /var/www/html The file /etc/nginx/sites-avail

How to reset a React-Bootstrap Form after submit?

I added React-Bootstrap to my app. So I change a basic form with React-Bootstrap components. I can't reset a form after a submit. Here is my simplified code:

What is the difference between JavaScript and JSX?

I am pretty new to React, I find most tutorial talked about JSX, I have not learnt any JSX syntax, but I am wondering if the main usage difference between JavaS

Get text content from React element stored in a variable

Is there a way to get text content from a React element stored in a variable without ref? There is a functional component, that receives title prop, which conta