Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React,{ useState, useEffect } from "react";
- function LoginForm(props) {
- const [data,setData] = useState(
- {
- name: '',
- password: ''
- }
- )
- async function fetchData(){
- }
- return(
- <div>
- <form>
- <label htmlFor="name">Username:</label>
- <input
- type="text"
- name="name"
- id="name"
- />
- <br/>
- <label htmlFor="password">Password:</label>
- <input
- type="password"
- name="password"
- id="password"
- />
- <br/>
- <button type="submit">Submit</button>
- </form>
- </div>
- );
- }
- export default LoginForm;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement