Is there a valid way to use SCSS or CSS variable in React component as inline style?
I would like to do something like this below
scss
$red: #F65959;
:root {
--red: $red;
}
js
const style = {
color: '--red',
};
export default style;