From 90fd5583fde61a8651354399d1292767482b901d Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 12 Sep 2023 10:02:20 +0000 Subject: [PATCH] Add Handler to stop page refreshing upon submission --- src/pages/Signup.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/Signup.js b/src/pages/Signup.js index 1cdb24a..fa1e547 100644 --- a/src/pages/Signup.js +++ b/src/pages/Signup.js @@ -5,6 +5,12 @@ import Col from 'react-bootstrap/Col'; import Button from "react-bootstrap/Button" export function Signup ( props ) { + + const submitHandler = (evt) => { + evt.preventDefault() + } + + return (