Cancelar o botão no React JS

const [ inputValue, setInputValue ] = useState("Value from onchanges");

const handleCancel = () => {
    setInputValue("");
};



<button type="submit" onClick={handleCancel}>Cancel</button>
Suraj Kr Thapa