In my React project, I am attempting to create a unique progress bar with custom styling. Specifically, I have a dynamically calculated percentage that I want to assign as the width of a div element. Initially, I tried achieving this using Tailwind CSS:
<div className={"p-1 w-[" + percentage + "%]"}></div>
However, this method did not produce the desired outcome. Can anyone provide guidance on how to implement variable styling like this in React?