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. The stuff within the handlebars isn't evaluated, it's just passed through as code rather than a string. Your example is equivalent to this:
React.createElement(div, { count: count?true:false })
not, as your comment implies,
React.createElement(div, { count: true })
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: