import React from 'react' import isEmail from 'validator/lib/isEmail' import axios from 'axios' import {FormController, Input, Button} from '~/components/form' export default function Login(){ const submit = async (values)=>{ const {data} = await axios.post(`/api/auth`, values) console.log(data) } return (

Login

isEmail(value)} hint="Enter a valid email address" /> (value.length >= 8)} hint="Password must be at least 8 characters long" />
) }