When working on a javascript project, I needed to create a div element. Here is the code snippet I used:
const divStyle = {left: offsetPercent + '%', 'position': 'absolute'};
<div style={divStyle}/>
However, I encountered an issue with Typescript complaining that the 'absolute' value (a string) is not assignable to PositionProperty. So, does anyone know how I can properly set the position?