I am trying to build a custom progress bar using React. I have a calculated percentage, I want to set as a width of some div element. Currently I tried it using Tailwind CSS:
<div className={"p-1 w-[" + percentage + "%]"}></div>
But it does not work. So how can I apply this kind of variable styling in React?