top | item 10200002 (no title) zpao | 10 years ago They're only needed if you don't start your JSX expression on the same line as the return. discuss order hn newest empyrical|10 years ago (this is just in the chrome js console, not sure about other envs)The automatic semicolon insertion doesn't seem as bad for arrow functions, this works as expected: () => "this string is returned" I'd personally keep using the parenthesis for aesthetic reasons though.
empyrical|10 years ago (this is just in the chrome js console, not sure about other envs)The automatic semicolon insertion doesn't seem as bad for arrow functions, this works as expected: () => "this string is returned" I'd personally keep using the parenthesis for aesthetic reasons though.
empyrical|10 years ago
The automatic semicolon insertion doesn't seem as bad for arrow functions, this works as expected:
I'd personally keep using the parenthesis for aesthetic reasons though.