Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Every input should have a type. It's a good thing to put in a linter and run before you consider your code complete.

Yes, the default is bad, but you should be overriding every one of those anyway.



> but you should be overriding every one of those anyway.

I’m gonna be a bit of a pedant here, but button has 15 attributes. I feel like overriding every attribute on every element (or even just form controls) would make the people who complain about Tailwind classes being too verbose have an aneurysm




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: