3 ms·
From someone with years of experience with javascript, how is this "plain 'ol javascript"? <ul> { heroes.map(hero => <li key={hero.id}>{hero.name}</li>
by franciscop 11y ago
From someone with years of experience with javascript, how is this "plain 'ol javascript"?
<ul>
{ heroes.map(hero =>
<li key={hero.id}>{hero.name}</li>
)}
</ul>
- insin 11y agoIt clearly isn't, but it starts to feel like it once you get used to JSX syntax as sugar for nested function calls with attribute object arguments.