Reactjs – How can I correctly set the type of a value in the onChange method in React with TypeScript?
I use React Aria Components' RadioGroup with controlled values to display an array of options. The options are typed with an enum. To store the selected option locally, I use a useState with the first option as a default value.…