by fullstackchris · 4y ago · 0 comments
Stop this. Just stop it. If you're any company worth it's salt with a decent landing page, you're going to need things like internationalization, a contact form, maybe even a light / dark mode if you want to be hipster. How are you going to do form validation? Min / max length of message? Email validation? The list goes on and on... These things become 100x easier with a framework like React.
_Yes_, you can do this all with vanilla JS and HTML. But eventually you're going to make a mess. You don't have to use React either - many choice frameworks can help you with all these things.
My quick two cents about programming and writing is that to be great in either (and not just good), it's far more complicated than just a simple set of rules.
Links to different urls
> a contact form,
Standard html form
> maybe even a light / dark mode if you want to be hipster.
A flip of a single CSS variable.
> How are you going to do form validation? Min / max length of message? Email validation?
`<input type="email" />`; `<textarea minlength="100" maxlength="500"></textarea>`
For app front ends I might buy the "Just use React" argument, but that still adds significant complexity, especially for a smaller 2-3 person team trying to get an MVP out the door. I don't think it follows that using a more basic framework like jQuery means you are suddenly accruing technical debt. It really depends on your UX needs greatly.