Skip to main content

All Questions

0 votes
2 answers
72 views

Loop through a state array in React and switch each item to true using setTimeout

I have an array in state: const [show, setShow] = useState([false, false, false, false]) These affect whether or not an image is displayed. I'd like to iterate through them one by one, using a delay ...
Maccles's user avatar
  • 131
0 votes
2 answers
73 views

filter out object in array if object key value is null

I need to filter out objects in array if specific key value is null.(trying to learn) const getPlayerData = async () => { const allPlayers = await fetchData("https://api.sleeper.app/v1/...
D_chez12's user avatar
0 votes
1 answer
37 views

react redraw only updated array object when property changes using array.map

I would have guessed that this question is a dupe, but I searched and I can't find it... Full source for this q is here: https://github.com/micahg/arraytest. Using react, I'm mapping an array of ...
micahg's user avatar
  • 39
1 vote
1 answer
79 views

I have tried to implement search functionality in react, when I clear the input, I am not getting back the full list

The search functionality works but when I clear the input value, the complete list does not show up. I am using filter method for it, I am not understanding how can I get the full list back. //search ...
shruthi gowda's user avatar
0 votes
3 answers
78 views

Anomaly in Updating React Array State

Updating state of array didn't work like expected! I'm making a Tic-Tac-Toe Game with this detail: I have a state called gameBoardState (an 3x3 array) that contains the position of 'X' & 'O' with ...
JavaInsel's user avatar
0 votes
1 answer
59 views

Working with React: Question on deconstructing components

So, I'm going through some React studying and I'm current just doing small code. I was writing two files. The first is where my data is in my variable. I'm using a basic map method to loop through my ...
Elijah Prosperie's user avatar
0 votes
0 answers
17 views

Error in a script for Adobe Illustrator in charge of numbering

I’m working on a JavaScript script for Adobe Illustrator that will number multiple text fields in an.ai. The script should increment the numbering in multiple text fields at the same time and generate ...
Diego Alvarado's user avatar
0 votes
1 answer
42 views

Is it possible to clone an App from Chrome sources if it shows most files but no package.json?

I found a react platform that I wanted to break down to further understand it more, and redesign it for a future idea, and it seems to have all required files but I'm not sure, so I'm hoping someone ...
DeFiDevJimmy's user avatar
-1 votes
1 answer
69 views

Material UI React JS Select component with multiple value unable to deselect when more than 1 item is selected

So i am trying to implement a multiselect dropdown in material ui with the following conditions The dropdown will have [0 Apples, 1 Oranges, 2 Grapes] By default 0 Apples should be selected None of ...
Roy33's user avatar
  • 3
1 vote
1 answer
382 views

Virtuoso Grid reverse order

I am writing a frontend in React and have a component that uses VirtuosoGrid() to render a collection of images. As images are uploaded, new images appear at the bottom of the page. I would like to ...
cdyswnnr's user avatar
-1 votes
1 answer
82 views

Placing individual images in Quiz questions react native

I'm still having a problem with this... here is the code question example on my .js data file: Now I've added the whole block of code, the part that I am mostly interested in.. I hope this helps: ...
Susy's user avatar
  • 9
0 votes
0 answers
31 views

Append and modify a flag onClick to Parent element if same element is present on Child element in react js

I want to modify a disabled flag to parent element which has same Id in child element and create a new array which is selected onClick. parent = [ { "title": "Create User&...
Mrityunjay Yadav's user avatar
3 votes
1 answer
80 views

javascript setting a .map() range and update the range later

I'm building an app with React & JS which returns products from a json list inside a component, the array is outputted on the app using a .map() array. I'm also limiting the amount to return ...
Chobbit's user avatar
  • 654
0 votes
1 answer
45 views

Reactjs, StricMode calling setState twice. Alternative and best practices

Technical question here. I created a context provider to handle the state of some variables and to create functions to update these variables from other components. It is of my understanding that ...
Rochin's user avatar
  • 1
1 vote
0 answers
73 views

How to handle multiple color palettes?

I'm a newbie here and in programming overall. I am working on a project that resembles a pixel art editor using React + Redux and Canvas. I want to give the user the option to create and use their own ...
Qrisk's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
445