Normally with a arrow function you can return by having no curly brackets: () => //return value here
This of course limits what you can do with the function so alternatively you can provide curly brackets:
() => {
//do stuff in here
}
As you can see using the brackets there will be interpreted as a block of code like it would be with a regular JavaScript function, but if you want to return an object immediately you need to parentheses around the brackets so they will be interpreted as an object rather than a block of code: () => ({})
That will return an empty object.