I am trying to apply a background image in my react style, but it did not work properly. I have attached my code, this code does not work for me. How can I solve it?
<div class="page-background" style="background-image: url(assets/img/background.jpg) ">My Page</div>
This code does not work in my react js.
Got error: the `style` prop expects a mapping from style properties to values in react js
Question and answer is powered by AnsPress.io