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.
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.