JSFiddle - React, Tailwind, and code Playground

JavaScript

let arr = [10, 2, 7, 5, 8, 4, 3, 1]