Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
couchand
on March 16, 2016
|
parent
|
context
|
favorite
| on:
JSX is no longer my friend
Not exactly... within JSX the handlebars signify "now I'm going back to plain JS".
compare
<div> console.log(123) </div>
with
<div> { console.log(123) } </div>
The first outputs a div with the text "console.log(123)" inside. The second logs "123" and outputs an empty div (since console.log returns undefined).
ricardobeat
on March 18, 2016
[–]
That's the point.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
compare
with The first outputs a div with the text "console.log(123)" inside. The second logs "123" and outputs an empty div (since console.log returns undefined).