I am working on a survey using react I have multiple questions and choice's in list form and some are type:
checkbox where you can select multiple options and some are
radio type and I wrote a handle function but the problem is that when I select multiple options for first questions its keep selected options on next question , so I want help that how it will not keep previous question selected options. here is the survey questions list with choices in API form.
Here is the code sandbox link I tried please check it and try to help me I am struggling with this few days