O'Reilly logo
  • Bob Massarczyk thinks this is interesting:

With arrow functions, this is a required step since the arrow can’t just point to an object’s curly braces.


Cover of Learning React


You can point to curly braces, but only if there are on a single line. For anything that is longer than a single line, you need parens. No matter what the content is.