Added routing and structure to the login and register

This commit is contained in:
2021-09-24 23:54:40 -03:00
parent 6fea8d9175
commit 1f5222c069
10 changed files with 98 additions and 12 deletions

View File

@@ -0,0 +1,33 @@
import React, {useState} from 'react'
import LoginForm from './Identify Childrens/LoginForm'
import RegisterForm from './Identify Childrens/RegisterForm'
const Identify = () => {
const [act, setAct] = useState('register')
return (
<div>
<nav>
<div>
<h2>LOGIN</h2>
</div>
<div>
<h2>REGISTER</h2>
</div>
</nav>
<div>
{
act === 'login' ? <LoginForm /> : null
}
{
act === 'register' ? <RegisterForm /> : null
}
</div>
</div>
)
}
export default Identify