I want to create custom style object through a function, something like this
function myFunc(styleParam, value){
const style = {styleParam: value} as React.CSSProperties
return style
}
Is there a way to pass a react style parameter as a variable?
Edit: solved!