I want to access the index number outside of that map method because I want to use that index conditionally to show other component like if that index is checked then the compon