Skip to content

Image src standards #7

Description

@jessebadry

I propose it would be cleaner to implement images by using import statements, e.g

react:
import {BlankProfilePicture} from "../../img/blank-profile-picture.png";

instead of
require("../../img/blank-profile-picture.png")

this is so we can write our code like so:
<img src={BlankProfilePicture} />
instead of
<img src={require("../../img/blank-profile-picture.png")} />
as the former is more readable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions