0
我當前使用以下語法將狀態顏色嵌入到jsx中。將Lighten Css特性嵌入到Jsx/React
<div className="preview-box" style={{backgroundColor:this.state.color}}>
有沒有辦法在css中使用亮化功能來做這樣的事情?
<div className="preview-box" style={{backgroundColor: lighten(this.state.color, 15%)}}>