Closed kenken023 closed 3 years ago
Hello @kenken023,
Thank you for reaching me and using this library.
Actually, you can simply put the logic for choices
prop. Set your choices
state to the initial choices array and when you need to reset the poll, simply set the choices
state array with the initial choices again and set the hasBeenVoted
prop to false
.
Thanks, it is working now! Cheers!
I need to reset the poll after the user selected an option.