For example the following will not be particularly efficient, because a fresh callback is passed to the component on each render.
<>
{array.map((data) => (
<SomeComponent
data={data}
onClick={() => { alert('nope'); }}
/>
)}
</>