Category "reactjs"

How to avoid act() with sub component changes?

I'm using the Select component from patternfly and attempting to do a test that involves making changes to the selection. I feel like I'm in a catch 22 as I can

if I have an array I want to open accordion Mui by map

enter image description here enter link description here This code is from MUI and look there please when you open the first accordion then you open the second

How to connect Material UI v5 to Next JS v12?

Recently, Material UI 5 was released. Previously (in Material UI 4), I used to connect it by modifying _document.js and _app.js. Is it the same for Material UI

"SyntaxError: Unexpected token < in JSON at position 0"

In a React app component which handles Facebook-like content feeds, I am running into an error: Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected

How can I render only once an Alert component in react native?

How can I render only one time an Alert component in react native if my dashboardScreen is being render many times? I'm using Context api, if I dispatch an acti

React native - undefined is not an object (evaluating '_bip.default.generateMnemonic')

I'm building a mobile application and I need to generate a passphrase using bip39. At first, when I installed the package from npm I got missing dependencies er

Redux state change not reflected when connecting multiple React modules to same store

I am working on a React application (not CRA template) which consists multiple modules and I am trying to connect some of the modules to same Redux store so tha

Persist-reducer function giving type error to my reducer in typescript

I am trying to configure react-persist in my typescript react application. The persistReducer function is giving a type error to my reducer that Argument of typ

search filter in react js

this code is working very well but if a person search a doctor using doctor name this time if any doctor name are not match with this input name this time I wan

How should I obtain high accuracy using expo location?

I am using expo-location from here As per all the examples I read the following code should do the trick: useEffect(() => { (async () => { let {

Why my scrollMagic is not working properly?

So basically I have problem wherein I try to make animation in my scroll animation using scrollMagic..My codes are written in reactjs but I don't know why it is

Save react-pdf rendered file to state for sending it to server?

im using react-pdf library i managed to save file localy but now i would also need to save it on server since i am required to do a history display of all the f

Webpack giving an error when hot-reloading my react app

When I make a change to my react-app, and it tries to reload, I get the following error: /path/to/app/node_modules/webpack/lib/node/NodeWatchFileSystem.js:50

react-native start crashes with error npm[11708]: c:\ws\src\util-inl.h:369: Assertion `!(n > 0) || (ret != nullptr)' failed

I am trying run react-native app. when I run npx react-native start server start, displays react logo and crashes with error npm[11708]: c:\ws\src\util-inl.h:36

One component affecting another in reactjs

Every url loads three main components: Left panel, center and right panel. In right panel, we have a button which returns a sub-component CreateForm inside the

React Native Image Upload is not working with iOS but works fine with Android

I’m using react-native-image-crop-picker I have upgraded my Flipper for iOS version 0.142 I have upgraded my library as well var body = new FormData();

Gatsby + React-pdf

I'm trying to get react-pdf to work in gatsby and something is wonky with my webpack config. Tried different ways from different posts but nothing seems to do t

Send the selected option to the backend

I have a select menu (with three options) along with a search bar. All I want is to save the selected option and the searched term and send them to the back-end

React router dom (6.0.1) child route not working properly

I'm working with react-router-dom v6.0.1 and I'm trying to setup a simple tree structure composed. The problem is when I link the path /items Router redirectos

I am seeing following error while trying to add firebase analytics

I have linked firebase analytics to the firebase project recently but I am getting the following error in my console and nothing is visible in the firebase anal