Category "reactjs"

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

Material UI: dialog with Groupbutton

I have this file and I'm trying to have a "group batten", and when I click on it, I have a list with ["Confirm Review", "Reject Invoice", "Assign to User"] and

Using ReachDOMClient from a simple CDN static page

On a simple static web page (no server-side rendering, no bundler), I access react and react-dom using <script crossorigin src="https://unpkg.com/react@18/um

Tailwind default color classes not working

I'm building a React application using Tailwind CSS Framework. I have used NPM to install tailwind in my react app in the following manner: npm install -D tailw

failed to get data from my contract using the navbar (web3 react hooks async function)

I'm trying to build My first react Dapp! The problem I encounter is the data doesn't load only when I'm refreshing the page instead of navigating with the navba

For nextJS installation npx create-next-app stuck on installation

The create-next-app isn't responding it is stuck midway through the installation with zero installation progress and its been like this for more than 10 mins c

React console.log not showing array values

Console it printing Array [] instead of values. I have checked the code but figure it out. Why doesn't console.log show me array values when i click button? imp