How to uncheck an input radio in React and Typescript?
It will seem a pretty silly question, but I have been struggling to uncheck the input, This is a system for 5-star reviews. but to improve the user experience, I want to allow the user to uncheck the input, and therefore uncheck the review, if they click on the same clicked star once again. how can I do this? I have been struggling for literally hours. PS: This IntRange is a type I created myself that treats the numbers within a range, in this case, from 1 to 5. It's written 6 because it takes a number after the maximum, but it should be treated as five. const [rating, setRating] = useState<In
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.