Replace "images require imports" with modern "ES6 imports"
amanjagdev opened this issue · 1 comments
amanjagdev commented
Replace "images require imports" with modern "ES6 imports", example images used in the project are in the form
<img src={require("../assets/logo.png")} alt="React-Builder-Logo" />
Instead, they should be done like:
import logoImage from "../assets/logo.png"
<img src={logoImage} alt="React-Builder-Logo" />
PS : As i checked the old import statements are no longer working in updated version of react and we need to shift to a newer version of react
Seagullible commented
I can take a look at this