importtargetValuefrom'@codewell/target-value';consteventHandler=(inputValue)=>{// Do something with the input value// from the input element}constsayHello=(inputValue,hello,there)=>{console.log(hello,there,inputValue)}constSomeComponent=()=>(<><inputonChange={targetValue(eventHandler)}/><inputonChange={targetValue(sayHello,"hello","there")}/></>);