JSFiddle - React, Tailwind, and code Playground
by Nibin George
JavaScript
// arrow functions in ES6
let customDef = n => n+1; // convenient shorthand
console.log(customDef(1)); // 2
// great for simple expressions
let arr = [1,2,3,4].reduce((n, m) => n+m);
console.log(arr); // 10