Answers for "images in background in react"

CSS
9

backgroundImage react

import React from 'react';
import car from './images/car.png'
function App() {
  return (
    <div  styles={{ backgroundImage:`url(${car})` }}>      <h1>This is red car</h1>
    </div>
  );
}

export default App;
Posted by: Guest on July-23-2020
1

background image react

in your css 

.background {
  background-image: url('./Images/img.png')
}
Posted by: Guest on September-26-2021

Code answers related to "images in background in react"

Browse Popular Code Answers by Language