Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Honzo
on July 8, 2015
|
parent
|
context
|
favorite
| on:
React on ES6+
Would you be able to use template strings inside the template if this was the case?
financequoll
on July 8, 2015
|
next
[–]
Yes, template strings can be nested (well, they can using Babel).
empyrical
on July 8, 2015
|
parent
|
next
[–]
This works for me in the latest Chrome too:
`${`test`}`
k__
on July 8, 2015
|
prev
[–]
Good point.
Since JSX is just JavaScript, it doesn't have any problems with nesting.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: