authfunctions react

Solutions on MaxInterview for authfunctions react by the best coders in the world

showing results for - "authfunctions react"
Darla
04 Jul 2018
1import React, { useState } from 'react'
2import { login } from "@authfunctions/react"
3
4export default function Login() {
5  const [name, setName] = useState("");
6  const [mail, setMail] = useState("");
7  const [password, setPassword] = useState("");
8  const [err, setErr] = useState("");
9  return (
10    <>
11      <input
12        onChange={(e) => setName(e.target.value)}
13        value={name}
14        placeholder="name"
15      />
16      <input
17        onChange={(e) => setMail(e.target.value)}
18        value={mail}
19        placeholder="mail"
20      />
21      <input
22        onChange={(e) => setPassword(e.target.value)}
23        value={password}
24        placeholder="password"
25      />
26      <button onClick={onLogin}>login</button>
27      <br />
28      <p>{err}</p>
29    </>
30  )
31}
queries leading to this page
authfunctions reactauthfunctions react