Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
January 13, 2023 09:44 am GMT

Cleaner JS Module Imports

Clean looking code cleanses the eyes. -me

Instead of doing this.

import {  IconLogout,  IconLogin,  IconHome2,  IconSquareRoundedPlus,  IconWalk,  IconSettings,  TablerIcon,} from "@tabler/icons";

Can we just do this?

import { IconLogout, IconLogin, IconHome2, TablerIcon } from "@tabler/icons";import { IconSquareRoundedPlus, IconWalk, IconSettings } from "@tabler/icons";

Im guessing this will affect performance one way or another, or a javascript expert will tell us in the comments below


Original Link: https://dev.to/mmvergara/cleaner-js-module-imports-56dk

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To