4 points · by Trisell · 10y ago · 2 comments
I'm really surprised the author went through all the trouble of making this, considering that you can handle dynamic styling via inline styles in React.
class MyComponent {
render() {
return (
<div style={{color: this.state.color}}>
My Text
</div>
);
}
}