bst365体育投注网址大全

Questions tagged [reactjs]

bst365体育投注网址大全 React (also known as React.js or ReactJS) is a JavaScript library developed by Facebook for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

Filter by
Sorted by
Tagged with
-1
votes
0answers
17 views

“object is not iterable” on the web browser

I am writing a React application and am trying to pass a 2D array media_relevance_array into combine_arrays_with_frequency_toggle, which does a spread operator on the variable. When I run this on ...
0
votes
0answers
7 views

Stripe - Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmCardPayment

Console Error message: v3:1 Uncaught (in promise) IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a client secret of the form ${id}_secret_${secret}. You ...
0
votes
0answers
8 views

array length returning zero inside props to the child component

itemsLength variable is returning zero to pagination component this.state.items.length just above the pagination component shows a count of 6 but it shows zero on pagination component here is the ...
0
votes
0answers
11 views

Tic Tac Toe Built in React reset

I am building a Tic Tac Toe game. It all works fine except the restart button. Onclick I am resetting state to my initial state, but my grid component does not update on props change. App > Board &...
0
votes
0answers
5 views

Apollo 3 pagination with Field Policies

Could someone provide an example of pagination implemented with Apollo Client 3.0 Field Policies. I've been following the example from the docs to implement infinite scroll but in my console I'm ...
0
votes
0answers
10 views

How do I start the same docker container on two different ports using docker container?

Since Products and users use all the same files, just run on different ports, how can I just run the same container twice on two different ports? version: "3.8" services: users: build: ...
0
votes
2answers
20 views

React installation on mac

i need some help because i recently start to work on my macbook (until my ubuntu VM) and i have some trouble with the installation. And now when i load my old project i got this : Module build failed (...
0
votes
0answers
5 views

How do I view my snapshots on Mozilla console?

class ShopPage extends React.Component { unsubscribeFromSnapshot = null; componentDidMount() { const collectionRef = firestore.collection('collections'); collectionRef.onSnapshot(async (...
1
vote
2answers
15 views

Return JSX component onPress react-native

I want to prompt users to get input onPress but returning JSX from an onPress never worked so whats a possible workaround to return JSX based on button click. Here's my code: import React, { useState }...
0
votes
0answers
22 views

React is somehow blocking :hover state

I have a react component with a div with a class name <span className="myClass" .. I have a CSS style like this .myClass{ text-decoration:underline; } If I go into dev tools and ...
1
vote
2answers
45 views

Array .map() is returning HTML [object Object]

I'm trying to make simple animation text in React and JavaScript and my problem is that after mapping array with letters result in HTML what I get is <span>[Object object]</span>. Someone ...
0
votes
0answers
6 views

React Leaflet - Unable to use Canvas Markers with Clustering

I'm trying to use Canvas Marker with Clustering but its throwing an error. The following libs are used: https://github.com/yuzhva/react-leaflet-markercluster https://github.com/lycheelin/react-...
0
votes
1answer
10 views

Adding a product component to basket with react hooks

The click on the button of any product card must add a component "AddedProduct" into the component "Basket". Depending on chosen product, the component "AddedProduct" ...
0
votes
0answers
5 views

Why Apollo cache doesn't return results from the cache on local state query?

I'm using "apollo-boost": "^0.4.3" npm package in React website. I recently ran into a problem that on sometimes useQuery doesn't return data from cache. My local apollo state ...
0
votes
0answers
17 views

React useEffect cleanup question. parent clean up first

React useEffect cleanup question. Whenever a component is unmounted every time the router page is changed, the value is displayed in the console log. The parent is printed first in the console log, ...

15 30 50 per page
1
2 3 4 5
15200