JSFiddle - React, Tailwind, and code Playground

JavaScript

var folderID = $(this).attr('data-id') || 1;

alert(folderID);