Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jamil7
on May 25, 2023
|
parent
|
context
|
favorite
| on:
VanJS (Vanilla JavaScript): smallest reactive UI f...
I think the way it's done is correct, an object passed as a parameter with key value pairs for attributes seems a lot more logical.
mattigames
on May 25, 2023
[–]
Maybe, but I bet this way would be slightly faster, because the library wouldn't have to loop through keys if they write functions for all the most common attributes (href, rel, className, type, etc)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: