I want to add a background image in React.js by using a style definition, which works:
let imgUrl = \'images/berlin.jpg\' let styles = { root: {
Clarifing another answer
let imgUrl = 'images/berlin.jpg' let styles = { root: { backgroundImage: `url(${ imgUrl })` backgroundRepeat : 'no-repeat', backgroundPosition: 'center', } }