Answers for "authfunctions react"

2

authfunctions react

import React, { useState } from 'react'
import { login } from "@authfunctions/react"

export default function Login() {
  const [name, setName] = useState("");
  const [mail, setMail] = useState("");
  const [password, setPassword] = useState("");
  const [err, setErr] = useState("");
  return (
    <>
      <input
        onChange={(e) => setName(e.target.value)}
        value={name}
        placeholder="name"
      />
      <input
        onChange={(e) => setMail(e.target.value)}
        value={mail}
        placeholder="mail"
      />
      <input
        onChange={(e) => setPassword(e.target.value)}
        value={password}
        placeholder="password"
      />
      <button onClick={onLogin}>login</button>
      <br />
      <p>{err}</p>
    </>
  )
}
Posted by: Guest on August-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language