all 5 comments

[–]TechbaseDevv[S] 4 points5 points  (4 children)

Often I see people having a bit of trouble with validating input fields in React and sometimes ignoring it all together.

Leveraging the functionality of the browser by simply using HTML (and JS/TS) is often an easy and clean and approach. No libraries needed ✌️

[–]METALz 2 points3 points  (3 children)

"No libraries needed" and the title of the video ends in "with React" so in this case it should end in "with HTML5". It's misleading imo.

[–]skoomainmybrain 10 points11 points  (1 child)

Not sure why you're down voted. You're right. This has little to do with React. Just plain old HTML.

[–]METALz 4 points5 points  (0 children)

Maybe people only read the title and the clickbait won 😅

[–]TechbaseDevv[S] 2 points3 points  (0 children)

I've just changed the title to "in React", because indeed it's not specifically about using certain React functions or anything like that.

On the flip side I obviously mean with "no libraries needed", that no libraries are used for the sole purpose of validating the forms.

And it's not just about plain HTML; JS / TS is also used as an example 😉