I am taking React classes and it seems I can do:
const Header = () => (
<div></div>
)
or
const Header = () => {
return (<div></div>)
}
Notice regular parenthesis in the first syntax, and lack of return keyword. The second syntax is the one I am more familiar with -- it is clearly "the body of the function". But what does the first syntax mean? By the way, its coming from advanced react class by Wes Bos, and its in the context of next.js -- may be that makes a difference?