Roll the Fun: Building an Interactive Dice with TailwindCSS and ReactJS
Up until now, whenever I had to create a dice roll, I’d just reach for Math.random() multiply it by 6, add 1, and wrap it in Math.floor() to get a whole number between 1 and 6. Simple and done.Somet...