5 questions from the last 1 days
-2
votes
1
answer
26
views
Getting each child in a list should have a unique "key" prop error [closed]
Each child in a list should have a unique "key" prop. Check the render method of div. It was passed a child from MenuBar.
<div className="flex items-center overflow-x-auto no-...
-1
votes
1
answer
25
views
React 19 Boiler plating
I am trying to create a custom boilerplate, For the routing part i am planning to use react-router. So for that I am confused whether I want to use declarative mode or data mode.
Please suggest which ...
2
votes
1
answer
38
views
Responsive Design using Chakra UI Show Component with When property
The newer Show component now has a when prop, but no longer has the above or below props. I'm trying to follow along with an exercise to use the Show component to display a grid item only on certain ...
-3
votes
1
answer
49
views
In React, why can't I use an object wrapper in state to allow mutating the data inside? [closed]
In React, if I have an array of data like [A, B, C], why not store it inside a wrapper object like { array: [A, B, C] }? then we can mutate the array directly (e.g., using .push()) and then create a ...
1
vote
1
answer
50
views
Piechart is not rendering proportionally
Why is this code not rendering the piechart proportionally? E.g. if the values are 2:4, it shows 2 as a thin line and the rest for the 4.
"use client";
function polarToCartesian(cx: number, ...