['Alex', 'Bagus', 'Cika']; return ( <ol className='contacts'> {names.map((name) => <li>{name}</li>)} </ol> ); } function Contacts() { function callContact() { const names = ['Alex', 'Bagus', 'Cika']; console.log('Calling contacts...'); } return ( <button onClick={callContact}> Call Contact </button> ); } Membuat UI List di React Memberikan Event pada Elemen React