标签: javascript reactjs
我有<div style={styles.background}></div>
<div style={styles.background}></div>
有可能做这样的事吗?
import image from 'img/image.jpg'; const styles = { background: { background: `url(${image})` } }; export default styles;
我知道这不会奏效,但是有类似的东西吗?