How to read input field value in reactjs
Read input field value in reactjs using react hook
Example
import React, { useState } from "react";
export default function App() {
const [name, setName] = useState();
return (
<>
<p>{name}</p>
<input
type="text"
onChange={(e) => setName(e.target.value)}
placeholder="Type your name"
></input>
</>
);
}