I ran across this in a tutorial:
const Todos = ({todos}) => (
<div>
<h1>Todos</h1>
{todos.map(todo => <p key={todo}>{todo}</p>)}
</div>
)
Why does parameter have braces around it? If I'd written it myself, the first line would look like this:
const Todos = (todos) => (...
Is this some wacky new ES6 syntax that I simply can't find documented?