Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
franciscop
on Jan 5, 2016
|
parent
|
context
|
favorite
| on:
Angular 2 versus React
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
on Jan 5, 2016
[–]
It 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
<ul> { heroes.map(hero => <li key={hero.id}>{hero.name}</li> )} </ul>