An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
January 13, 2023 09:44 am GMT
Original Link: https://dev.to/mmvergara/cleaner-js-module-imports-56dk
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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To