JSFiddle - React, Tailwind, and code Playground
by Matthew Day
JavaScript
const hello = (param2) => (param1) => {
console.log(`${param2} ${param1}!`);
}
const greeting = hello('Hello');
greeting('Jason');
//hello('Hello')('Jason')
// const actionName = () => dispatch => {
/* fnB = () => console.log('fnB')
fnA = () =>
let dispatch = () => {
let someVar = "world"
console.log('dispatch');
return someVar
}
const actionName = function() {
return dispatch();
}
const actionName = function() {
return (dispatch => {
console.log('hello ' + dispatch);
})()
}
actionName(); */