Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
201 views

MRE: MyType = MyDataCtor [MyType] | MyDataCtor2 MyType MyType | ... other cases (none of which require the map operation) foo :: Type1 -> Type2 -> (Type1, Type2) For example, for the ...
kesarling's user avatar
  • 2,338
-1 votes
1 answer
101 views

I am not able to get rid of it with this warning Warning: Each child in a list should have a unique "key" prop. Here is the complete code: const App = () => { const userList = [ { ...
Amit Yadav's user avatar
  • 35.8k
1 vote
2 answers
86 views

I wrote a hook to calculate sales based on month-to-set data for the chart. It works fine, but I'm not satisfied. is there a different or easy way to avoid repeating and make code clean and extendable?...
FZDEV's user avatar
  • 13
-1 votes
1 answer
109 views

I am trying to use map function in my code, but I am afraid that I am making some silly mistakes. It just does not work! Here is my code. I have 2 buttons captioned "ID" and "Text"....
Pravin Kumar Raja's user avatar
1 vote
0 answers
135 views

Hello I'm trying to develop a blog using django as a backend and react on the frontend. i've written a map function on the frontend to loop through the blog articles, all other field elements appears ...
Arthur Bella's user avatar
0 votes
3 answers
133 views

How can I check in React if a map function is empty or not inside the return section? wanna check If it's empty, if so render an empty array, otherwise wanna render everything by mapping the content. ...
Radhames Leonardo's user avatar
1 vote
1 answer
83 views

I'm fairly new to React and I'm using NextJS. I have an array with role objects. I'm mapping over the array to display role name and description. What I'm trying to do is display the other array ...
liitepiixels's user avatar
0 votes
1 answer
64 views

I have a component in react native that gets data from mongodb const Num = () => { console.log("how many times do you see this message?") const [data, setData] = useState([]) ...
Daniel Sanchez Islas's user avatar
0 votes
3 answers
111 views

I'm new in Next and Typescript and can't solve the issue, I have tried all possible options that found in the internet and thinking maybe the problem is that the answers were old and something have ...
Polina Tea's user avatar
0 votes
1 answer
279 views

I have a list of files that I want to import as tibbles, then mutate a new column onto each tibble based on an ifelse statement for a threshold. I didn't want to use a loop, so I have been trying to ...
gvit's user avatar
  • 3
1 vote
1 answer
116 views

I'm using Axios to retrieve data from the backend. When I log the data to the console, it appears as an object. However, I need the data to be in an array format. When I try to use the map function on ...
usernotavalible's user avatar
0 votes
1 answer
754 views

i am using next js 13.4.19. i have made a GET api and trying to access the data available at mongodb database. but when i try to map the data it shows me error Error: data?.map is not a function. This ...
AR SHAH's user avatar
  • 59
1 vote
1 answer
52 views

Need help I have nested list, I would like to change all the value of the photo become empty list, the list are below : df <- list(messaging = list (telegram = list (registered = 'true', photo = c(...
Reza AM's user avatar
  • 83
0 votes
1 answer
43 views

I want to display data from API on the chart and I know how to do it but I have error while using .map function. I want to separate prices[0]from prices [1] to have access to two of them because my ...
Jakub Polański's user avatar
0 votes
1 answer
131 views

When I input data into my Text input, it goes into this array WorkoutItems([...workoutTextItems, workoutText, setsText]) I want to get my data individually from each item, so for example, workoutText ...
Kyle's user avatar
  • 13

15 30 50 per page
1
2 3 4 5
56