JSFiddle - React, Tailwind, and code Playground

by Nibin George

JavaScript

// in ES6 array destructuring is awesome
let arr = [1,2,3,4];

let [a, b, c] = arr;

console.log(arr, a, b, c); // [1,2,3,4], 1, 2, 3