Answers for "jsx background iamge style"

12

Setting a background Image With React Inline Styles

backgroundImage: `url(${Background})`
Posted by: Guest on July-06-2020
0

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;
Posted by: Guest on March-08-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language