Skip to main content

All Questions

Tagged with
0 votes
1 answer
21 views

useState returning empty array on default state, using react + supabase

I need help to understand why when I console.log(menus) on Menu.jsx it returns an array of values, but if I console.log(item) it only returns an empty array, while the default value of the item is &...
eko pram's user avatar
3 votes
2 answers
61 views

Traverse over tree type structured data uing JavaScript

I have a data set having parent and nested children in it. The purpose of this data is to traverse over parent to -> child1 to-> Child1Child ..... -> child2 to -> child1 to -> child2 ...
vikas dhiman's user avatar
2 votes
1 answer
53 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
  • 493
0 votes
0 answers
43 views

Uncaught TypeError: Cannot read properties of undefined while reading values from an array that is not undefined in console.log()

I am developing a simple application in React, and I have an array that I want to use .map and display some options. There are two selects, one for the year, and one for the month, which should update ...
FellipeParreiras's user avatar
0 votes
1 answer
33 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
61 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
2 votes
2 answers
49 views

How to reset my useState to it's initial state after filtered list has rendered?

I am having trouble figuring out how to reset my projectList to it's initial state so that way in the filterProjects function it is filtering through the entire projectList and not the already ...
Amanda Morgan's user avatar
0 votes
1 answer
33 views

Not all the elements inside of the <div> are rendered. React.js

Recipe Card with button labelled "View Recipe" This is a recipe application where all of the data displayed is fetched from spoonacular (API) and when the user clicks on the button (View ...
Jonathan_Anon's user avatar
0 votes
3 answers
55 views

Filter an array of objects based on multiple categories

The data looks like: export const data = [ { id: 1, company: "Photosnap", logo: "./images/photosnap.svg", new: true, featured: true, position: "...
Saptaparnee's user avatar
0 votes
1 answer
32 views

Objects are not valid as a React child (PrimeReact)

I am having a array of data which is having multiple objects. I want to print the values inside the table using PrimeReact Table. But when I am passing the data inside value field of DataTable I am ...
Sarfaraz Kasmani's user avatar
0 votes
0 answers
22 views

ReactJS: updating the state of arrays in ReactJS, the question has nothing to do with objects [duplicate]

I am trying to add an item to an array in ReactJS code, but the new item (greetings) does not add to the array, what would be the potential error in the blow code? import { useState } from "react&...
panther's user avatar
0 votes
0 answers
32 views

How to Render Nested Array to Antd Design Table Datasource Component using React js

Hope you all doing fine. I am here for some advice from you guys. I am having an nested array which I would like to render the rows at ant design table datasource object. After tried many things I am ...
Indradeep's user avatar
0 votes
0 answers
22 views

React Leaflet Marker Change Rerenders Every Other Marker Causing Performance Issues

I'm trying to build a quick leaflet map akin to Apartments.com. It's a map with a bunch of markers (up to 2000 in my case) and it will have a sidebar with more in-depth details about the markers that ...
DanDPanda's user avatar
1 vote
0 answers
24 views

Why is the array cut and handled in a very enigmatic way, when trying to apply the Fisher-Yates algorithm in React? [duplicate]

I want to shuffle an Array of data, I fetched using apollo/client, inside an App I am writing with React. The data is used for interaction with the API, but it's not needed for rendering. I fetched ...
Jothon's user avatar
  • 11
0 votes
2 answers
98 views

The three dots menu apears on the last video (Multiple HTML videos)

I am rendering some HTML video tags to play videos. Now the problem is when the user click on the three dots menu, the menu should appear near the button that triggered it but the menu shows near the ...
ali abbas's user avatar

15 30 50 per page
1
2 3 4 5
584