Login.js This is login page designed in Reactjs and requirement is goto next page after next page after successful authentication, But database is created using postgreSQL and table name is 'user' which stores username and password. And development requirements are:
class Login extends Component {
render() {
return (
<div>
<div >
<div >
<h1 >Login</h1>
<div >
<input type="text" placeholder="Username"/>
</div>
<div>
<input type="password" placeholder="Password"/>
</div>
<button type="submit">Log in</button>
</div>
</div>
</div>
)
}
}
export default Login
It seems you are a beginner with the concepts,
You must try to check some tutorials and then start.
Coming back to your question I will try to answer as simple I can,
Hope you got the idea,
Caveat:- there will so many concepts like hashing, token, cookie, local storage, etc that will come in the journey.