2 ms·
You can actually do that with React. Nothing is stopping you. It's not the recommended way because as soon as you want validation or dynamic fields you need st
by richthegeek 6y ago
You can actually do that with React. Nothing is stopping you.
It's not the recommended way because as soon as you want validation or dynamic fields you need state anyway.
And there're easy libraries like Formik that handle all the annoyances for you (although taking you away from raw HTML at the same time).
Do you miss punch-cards too?
- krapp 6y agoOf course you can do that with React. GP implied that it was impossible without React, because standard HTML didn't support it, but wasn't correct. There may be plenty of advantages to using React but it isn't necessary for "SPA submissions that don't reload the page."