how can i add input value to state in React.js?

im trying to get input value and push it into state when the person click on submit,
but i confused.

const App = () => {
    const [category,setCategory] = useState([])
    return ( 
        <div>
            <input type="text" name="" id="" />
            <button type="submit" >Add</button>
        </div>
     );
}
 
export default App;

i tried lot of ways but i coudn’t find any solution.