How to disabled multiple checkbox selection in reactjs

I have a list of items where the user able to select one item at a time, For example, if a user selects one row then I want to disabled other rows I want to be select one row at a time . I really tried hard but didn’t able to resolve this issue.

Code

{menus.map((item,index)=>(<input type="checkbox value={index} />)}

Source: Ask Javascript Questions

LEAVE A COMMENT