thunk sintaxe

 const thunkFunction = (element) => {
  return (dispatch, getState) => {
  //rules of the function
  }}
Defeated Dogfish