Closed
Description
Because of the parenthesis BOTH tags should be included in the return statement. In error only the last one is:
CoffeeScript:
JSXFunction = -> (
<Row>ABC</Row>
<Row>DEF</Row>
)
Errant JavaScript:
// Generated by CoffeeScript 2.2.4
JSXFunction = function() {
<Row>ABC</Row>;
return <Row>DEF</Row>;
};
Correct JavaScript:
JSXFunction = function() {
return <Row>ABC</Row>
<Row>DEF</Row>;
};