Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import React,{ useState, useEffect } from "react";
  2.  
  3.  
  4.  
  5. function LoginForm(props) {
  6.  
  7. const [data,setData] = useState(
  8. {
  9. name: '',
  10. password: ''
  11. }
  12. )
  13.  
  14. async function fetchData(){
  15.  
  16. }
  17.  
  18. return(
  19. <div>
  20. <form>
  21. <label htmlFor="name">Username:</label>
  22. <input
  23. type="text"
  24. name="name"
  25. id="name"
  26. />
  27. <br/>
  28. <label htmlFor="password">Password:</label>
  29. <input
  30. type="password"
  31. name="password"
  32. id="password"
  33. />
  34. <br/>
  35. <button type="submit">Submit</button>
  36. </form>
  37. </div>
  38.  
  39. );
  40. }
  41.  
  42. export default LoginForm;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement