Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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>



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: