what is the equal code for this on React Function Component without using defaultValue?
<input onChange((e)=>{this.setState({title : this.target.value})}) value={value} />
I think this is what your asking:
import { useState } from "react";
function MyComponent({defaultValue}) {
const [inputValue, setInputValue] = useState(defaultValue);
return (
<form>
<input
type="text"
onChange={(e) => setInputValue(e.target.value)}
value={inputValue}
/>
</form>
);
}