DAY 52a: 21/FEB: React-Form Submission
· Default Behavior: React Forms by default adhere to the traditional behavior of reloading the page on submission.
· Control Behavior: To prevent this
<form onSubmit = {(event) => {
event.preventDefault();
...
}
#react#reactform
Want to learn how to handle forms in ReactJS? Then read this article!
In React, form handling works a bit different compared to the HTML form that is handled by the DOM.
#reactform#javascript#react#reactjs#webdev#forms
#ReactForm: "Hello, Tanner."
Me: "Hello..... React Form."
#ReactForm: "Remember me?"
Me: "Ugh... 🙄"
#ReactForm: "Oh please, you know you love me deep down."
Me: "Maybe I would If you would just take my input seriously."
#ReactForm: "Rewrite me then."
Me:
@KaelinHooper@nozzleio is already built on #ReactForm, so it makes a lot of sense for me to simply give it a facelift as opposed to ripping it out for a whole new paradigm. Not enough time in the world....