Email SignUp Callback

Hey Moralis fam, I have a simple question. I’m able to get users to sign up in the database however I’m not sure on how to get the response back from moralis. How do I handle the .onSuccess and .onError callbacks?

import React, { useState } from 'react';
import { useMoralis } from "react-moralis";

function App() {

  const { signup } = useMoralis();

  const [ username, setUsername ] = useState("")
  const [ email, setEmail ] = useState("");
  const [ password, setPassword ] = useState("")

  return (<>
    <input type="text" placeholder="Username" onChange={e => setUsername(}/>
    <input type="text" placeholder="Email" onChange={e => setEmail(}/>
    <input type="password" placeholder="Password" onChange={e => setPassword(}/>
    <button onClick={()=>signup(username, password, email).onSuccess(** This is where I need help**}>Press</button>

export default App;