Category "reactjs"

My markers are not displayed React leaflet

the goal is to displayed marker on map. I don't understand why my markers are not displayed I use react-leaflet The response is okay but nothing is displayed th

userEvent in React Testing Library Doesn't Cause onClick To Be Called

I'm trying to run a really simple test with react-testing-library where a button is given a mock function, the button is clicked, and the test checks that the f

stripejs autofill does not work on chrome mobile device (samsung galaxy)

I'm using <CardElement> and "@stripe/react-stripe-js": "^1.4.1", "@stripe/stripe-js": "^1.17.1", Only seeing this issue on chrome mobile browser

React Native - TypeError: n.createContext is not a function. (In 'n.createContext(o.default)', 'n.createContext' is undefined)

I'm trying to implement React Native into an existing Android application. I follow the steps in the official documentation and I have ended with the following

My pages in PBI report is opening on new tab when clicked but I want to restrict this behavior

I have created my application in REACT.js and I have embeded my PBI reports into my application. Whenever I am clicking on the button in my PBI report, I am be

Component Doesn't Show Up & React JS

There is a problem about my compenent, that is it doesn't show up? It's a first I'm doing a website project and using JS and React, so I don't know really what

How to properly write types for an array of generic React components and their properties?

I'm trying to properly type the following scenario: I have a manager/service that contains a collection of items, each item itself consisting of a React compone

TypeError: require(...) is not a function while Using sequalize with node js

I am beginner in web dev and trying to create a Full stack project using Mysql Express React Node js. Facing this TypeError issue while using Sequalize with nod

Chart.js 3.x migration problem – thin white border / padding appears around chart on first load

I'm using Chart.js with a React wrapper (react-chartjs-2). I want to upgrade to the latest major version of Chart.js (3.x) to remove the dependency on moment, a

Difficulty in create regex [duplicate]

40 I'm having trouble checking in React Js if a value is is any of the following combinations no spaces in starting Ramaining accept anything(

React console.log showing duplicate results in Dev Tools

Why does React show duplicate console.log? I found that to remove StrictMode from index.js. but there was no such problem before and why did I remove StrictMode

How to run the ant-design website locally

I'm trying to run the project locally. I'm following the instructions which are straightforward. But when running npm start I get this huge error as seen below.

How to change the `frontend_domain` port in `GRAPHQL_AUTH` in the verification mail?

I'm working on a Docker-Django-Graphene-React stack where Django is the backend which receive GraphQL queries through Graphene from React which acts as the fron

Page reloads when I use the setState function in React.js

When I use setState to change the object, the page reloads, resetting everything on the page. As I am making a tic-tac-toe app, either an X or 0 appears when I

process.env.CI = true build failed

I have a project written in react-script and during build I got error Treating warnings as errors because process.env.CI = true. Most CI servers set it automati

the home button in the drawer is not working but the one on the bottom tab is working well

This is the App.js when I change the home name in the navigator it works well <Drawer.Navigator drawerContent={props => <DrawerContent {...props} /

Is eslint pre-commit hook in CRA bootstrapped application required?

My react application is bootstrapped using CRA(react-scripts v4.0.0) and I want to add a code formatter (prettier to be specific) that must format the code befo

How to add items to array in react

Code: export default function App() { const [name,setName] = useState(""); var myArray = []; const handleAdd = () => { myArray = [...myArray,name]

how to I get a user's IP address when separate client and server apps, in Node with Nest.js

I have two apps, one front end (react.js) and one a REST API back-end(nest.js based on express.js). How do I get the IP address of the user accessing the back-e

How do I translate Country name pop-up to other language in jVectorMap - React

I have been looking for the answer for a long time but couldn't find any solution. Let's say my website's default language setting is English and when a user ho