How to create simple login form in ReactJS

 

  






const Home = ()=> {
   return(
    <div className='div'>
       <h1>LOG IN</h1>
       <input type='email' className='input' placeholder='Email'/>
       <input type='password' className='input' placeholder='password'/>
       <button type="submit" className='button'> Login </button>
     
      </div>
   )
 }
 export default Home;

App.css


h1{
  text-align: center;
  color: brown;
}
.div{
 display: flex;
 flex-direction: column;
 width: 20vw;
 margin-left: 40%;
}
.button{
  background-color: black;
  color: aliceblue;
}

You see on this video on YouTube link here




Post a Comment

0 Comments