Jak dynamiczna pseudo element w reakcji

app.js

const widthVar = 34;
const someStyle = {
     "--width": widthVar
}
<div className="something" style={someStyle}> </div>
style.css

.something:before{
      width: var(--width),
      // remaining code
}
danghai