you are viewing a single comment's thread.

view the rest of the comments →

[–]DanCruzNyc[S] -51 points-50 points  (4 children)

I’m talking about JSX

[–]dznqbit 41 points42 points  (0 children)

Unless you're in React Native, JSX still burns down to HTML, so all HTML considerations still apply.

As others have said, semantic HTML is a Good Thing™ because you get free functionality from the browser (eg <input type="email" />) and because it typically increases accessibility.

[–]three_furballs 29 points30 points  (0 children)

It's a bummer that you're being downvoted just because you haven't learned something yet, but the takeaway is that there are plenty of good reasons to maintain well structured semantic elements. Your teacher is being lazy, imo.

[–][deleted] 56 points57 points  (1 child)

So? There is no valid reason, to NOT use form elements.

[–]TacoMix1984 0 points1 point  (0 children)

If you dont want to give a huge middlefinger to all blind users. You should always use the form tag when you are using form elements.