Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Why make complex problems simple, if you can make simple problems complex. Why convey more accurately your ideas in a paragraph if you can just type out 3 pages of a mess.
-
If a form is complex for you in react, probably you don't know how to use react
🤡
but sure, if you'd like to handle accessibility, validation, hints, warnings, and error messages on Custom Self Made Framework of Your Choice™, be my guest - your pain, not mine -
Websites that re-download the entire page to send some data feel like a GUI calculator that exits with the answer as the status code.
-
kiki352911y@ostream I never said I was against client-side code. I use JS a lot. When I submit an invalid form, I don’t want the whole page to reload.
But that doesn’t mean I support rendering _everything_ on the client, including static HTML. -
😂 That is so funny… I got a similar one of ”And that is how you deploy a service to your local kubernetes cluster”
-
devJs13311yI used Formik before, it was kinda ok-ish but still pain in the ass.
Now I use https://react-hook-form.com/ and will use it until something better comes along. Also works nice with yup validation - i think that's something that you can use in node/express, so you can share validation from backend with frontend.
Some dude wrote article on hook forms and yup, it is pretty simple. Best DX for forms in react that I found up to date.
https://dev.to/franciscomendes10866...
Also a big PRO: no unnecessary re-rendering -
Im so fucking done with these technology... 95% of time i need to make forms
Livewire
Inertia
Alpine.js
Thats it -
kiki352911y@John-Does nothing. I update my UI manually with querySelectors and setting innerText/innerHTML.
Fuck react!
joke/meme