JSFiddle - React, Tailwind, and code Playground by bhupendra negi July 21, 2018 JavaScript const myfun = function (data) { const [a,b] = data; return a+b; } myfun();