react-builder icon indicating copy to clipboard operation
react-builder copied to clipboard

Replace "images require imports" with modern "ES6 imports"

Open amanjagdev opened this issue 3 years ago • 1 comments

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

amanjagdev avatar Sep 16 '21 04:09 amanjagdev

I can take a look at this

Seagullible avatar Oct 20 '21 23:10 Seagullible