MCPcopy Create free account
hub / github.com/codemistic/Web-Development / onSubmit

Function onSubmit

jsonRenderer2/src/Login.js:16–24  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

14 let navigate = useNavigate();
15
16 const onSubmit = (event) => {
17 event.preventDefault();
18 if(email === "n" && password === "n"){
19 navigate("/json");
20 }
21 else{
22 toast.error("Invalid Credentials", {autoClose:3000});
23 }
24 };
25
26 return (
27 <div>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected