Skip to content

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

@amanjagdev

Description

@amanjagdev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions