Are the return-parentheses needed?
The JSX gets converted to a simple function call.
The JSX gets converted to a simple function call.
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.