Using Radix Select with objects
I am creating a Select component with Radix. I wanted to select from an array of objects of type
{unit: "minute" | "hour", value:number}
. Seems like value
always needs to be a string though. What I'm thinking of doing -
Does this make sense? Feels wrong ..2 Replies
Fairly common practice to use an id as the value and then index using that
Ok thanks