For example in redux actions, I\'ve seen in someone\'s code:
export const updateMessage = text => { return (dispatch) => { dispatch(updateChatMess
In the first example, the {} are used to identify multiple lines of code, which is why the return is required in order to obtain something other than undefined.
{}
undefined
In the second example, the {} are used to create an object.