Category "reactjs"

Capture Errors From Embed/Iframe

So I'm building a React application for a client and they want me to find when a user is not authenticated, and redirect to a different site. When the user is n

NextJS: Error serializing `.data.data` returned from `getServerSideProps`

I'm new to NextJS. I'm working on a simple page in which I need to retrieve data from my backend app. My backend app is a totally separate app written in go. My

AntD React InputNumber Increase/Decrease buttons appear to start infinite loop

I am experiencing some unusual behaviour with AntD InputNumber component, specifically using the up/down incrementation buttons: I have a very basic implementa

Error in production after upgrading to react 18

I am trying to update dependencies in this Next JS Starter https://github.com/timlrx/tailwind-nextjs-starter-blog After upgrading react and react-dom to 18.0.0

Typscript Error on Class Constructor - No index signature with a parameter of type 'string' was found on type 'BarberModel'

I have a class constructor and I want populate it with an object that I receive in constructor. But I don't know how to solve this TS error on line this[key] =

React js application isn't running on localhost:3000

I have tried many many times but my http://localhost:3000 not working at all. Just taking reload & reload Console log is also clear. nothing at there. 1st t

reactive-native cli error creating new projects "Android project not found."

When I try to run a react native project with the command react-native run-android the following exception is a displayed: "Android project not found. Are you

How do I hide API key in create-react-app?

I made a weather app in create-react-app. How do I hide the API key so that I can commit to GitHub? Right now the key is in App.js: const API_KEY = "123456";

how i render only 5 first element from map react?

I want print some elements(3-6 elements) from json. I'm using map to print element, but if i use them i print all of element from json and my div is duplicated.

Debugging undefined is not an object (evaluating 'Object.keys(routeConfigs)')

I'm using Expo and React Native to create a simple iOS app. I am currently getting this error and have no idea how to fix it. I've tried various other solutions

How to handle React props correctly

I posted this here because I am relatively new to React and didn't know what exactly should I google. In my React project, I have a kendo grid that has a custom

Add product with Attributes to cart using redux

I need help in Reactjs app 'Add to cart'. I am using redux and to add products to cart with quantity and everything going right until tried to add specific attr

Tiktok login kit redirect_uri on localhost

i'm trying to implement the tiktok login kit, but i'm having problems with the redirect_uri on localhost. Localhost can't be defined on the tiktok developers ap

How to render specific array item to a different screen? React Axios

How can I display information of a specific array item in the different screen? The data is displayed from the backend on HomeScreen and upon clicking on one of

Toasty does not autoclose or manual close after hook list

I modified the code to generate a toast stack into a ToastContainer dynamically as a notification system. Now the toast do not autoclose even in close button cl

Why is this variable from the Redux store not in the `this.props` on React page?

I have a variable that I believe is correctly written to my Redux store using a Redux action and reducer. But for some reason it never becomes part of the props

Creating service in React Typescript using axios

There are two different ways to create a service and call from the required funtional component. 1. export const userProfileService = { ResetPassword: asyn

"RNSScreenStackHeaderConfig" was not found in the UIManager Wont go away

I'm on Mac OS 12 and trying to build an IOS app, but for some reason the error: Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was no

Socket.IO cannot establish a connection

I use socket.io-client for Javascript server on JAVA and when I enter address 'ws://10.201.223.67:9902/' the request is not by 'ws' but by 'http'. It returns

Why isn't getStaticPaths working with groq and sanity

i am trying to make this work and it just won't -- Dev hell... I am trying to use next js and sanity io together and i am having no luck. If anyone can point me