by jonkoops · 1y ago · 0 comments
Once you start bolting on all this stuff to HTML, congratulations, you have built a web framework.
I am not advocating that everyone should start using React. But HTML forms are severely underpowered, and you cannot escape JavaScript at some point. I would love it if forms could consume and POST JSON data, that would make this all a lot easier in a declarative manner.
Yup. No-one is suggesting using React for a login form with 0 interactivity
"why do we even need forklifts?! people can pick their laptops up with their hands!" ok thanks
form:has(.conditional-checkbox:not(:checked)) .optional-part-of-form {
display: none;
}
I’m not saying it’s better (it’s not). Just saying there’s a lot of space between “just HTML” and “a web framework”. It’s worth considering these other options instead of going “full React” from the get-go.