Setting a background Image With React Inline Styles
backgroundImage: `url(${Background})`
Setting a background Image With React Inline Styles
backgroundImage: `url(${Background})`
react app css add background image
import React from 'react';
import car from './images/car.png'
function App() {
return (
{*style not styles*}
<div style={{ backgroundImage:`url(${car})` }}> <h1>This is red car</h1>
</div>
);
}
export default App;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us