Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ceedan
on Feb 27, 2015
|
parent
|
context
|
favorite
| on:
“Implement text editor DOM updates manually instea...
It is obvious, because when you use a component, it's usage is as a single root node.
<component /> should not render multiple root nodes.
tootie
on Feb 28, 2015
[–]
return <h2>label</h2><SubComponent />;
That's illegal and will fail to compile and it's not obvious why that should happen.
ceedan
on March 4, 2015
|
parent
[–]
Because render is a function, and it should return a single value... because JavaScript.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
<component /> should not render multiple root nodes.