I am using ESlint in my project. I am getting the error ** Unexpected block statement surrounding arrow body** from this function
const toggleDrawer = (state) => {
return {
...state,
drawerExpanded: !state.drawerExpanded,
};
};
Can anyone suggest me how to handle this ESlint error?