I'm trying to filter an array in react. Here's my code:

```
resultArray = myArray.filter((item) => {
  return item.children.length === 0;
});

```

This gives me an eslint error:
`Unexpected block statement surrounding arrow body`

So I traded the braces for parentheses:

```
resultArray = myArray.filter((item) => (
  return item.children.length === 0;
));

```

This gives me an unexpected token error while highlighting the `return`.

What's the right way to do this?