8 ms·
> You don't need React for your landing page. Stop this. Just stop it. If you're any company worth it's salt with a decent landing page, you're going to need t
by fullstackchris 5y ago
> You don't need React for your landing page.
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.
- bitexploder 5y agoFor a landing page with one form you don't need React and I question how beneficial it is. You wont need or even use most of the features in React for a landing page. Same for most marketing sites, how much JS do they really need? 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.
- azangru 5y ago> you're going to need things like internationalization 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>`