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