๐ด ๐ก๐ฎ๐๐ถ๐๐ฒ ๐๐ง๐ ๐ ๐๐น๐ฒ๐บ๐ฒ๐ป๐๐ ๐ฌ๐ผ๐ ๐๐ผ๐ป'๐ ๐ก๐ฒ๐ฒ๐ฑ ๐ ๐๐ถ๐ฏ๐ฟ๐ฎ๐ฟ๐ ๐๐ผ๐ฟ
Stop fighting your browser. Stop installing libraries for things you already have.
Try these 8 native HTML elements:
- and
: Use for accordions.
- popover: Use for menus. It needs zero JavaScript.
- : Use for sliders. Style it with CSS.
- : Use for color pickers.
- : Use for calendars. It works on mobile.
- loading="lazy": Use for image loading.
Native first does not mean zero dependencies. It means you check the docs before you use npm.
Libraries freeze your code. Browsers improve. You inherit new features for free.
Ship less code. Get accessibility. Spend less time on maintenance.
Check the platform docs first. Half the time, the feature is one tag away.
Source: https://dev.to/dimonb19a/8-native-html-elements-you-dont-need-a-library-for-29b4