There is this users array in which the user names are stored in the photo are split from the photo array and i want to display the array results as buttons are displayed . The code snippet is below
let users: string[] = [];
const setUserNames = photo.filepath.split("_")[1];
users.push(setUserNames);
console.log(`Name ->`, users);
return (
<IonRow>
{users.map((users, index) => (
<IonButton key={index}>{users}</IonButton>
))}
</IonRow>
)