2 ms·
return <h2>label</h2><SubComponent />; That's illegal and will fail to compile and it's not obvious why that should happen.
by tootie 12y ago
return <h2>label</h2><SubComponent />;
That's illegal and will fail to compile and it's not obvious why that should happen.
- ceedan 12y agoBecause render is a function, and it should return a single value... because JavaScript.