Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
whazor
on Aug 17, 2024
|
parent
|
context
|
favorite
| on:
VanillaJSX.com
I don't see why the type casting (as HTMLButtonElement) is needed. Because document.createElement("button") returns HTMLButtonElement in TypeScript.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: