const TaskRegionView = () => {
const [condition, setCondition] = useState(false);
const handleToggleCondition = () => {
setCondition((prev) => !prev);
}
...
<Button type="link" onClick={handleToggleCondition}>
<LeftOutlined />
</Button>
{condition && (
<Filter
className={styles['filter']}
/>
)}
//функция
handleEvent= (arg1, arg2, arg3) => (e) => {
console.log(e.target.value); //значение инпута, если надо
console.log(arg1); //аргумент 1
console.log(arg2); //аргумент 2
console.log(arg3); //аргумент 3
}
//вызов
<input onInput={this.handleEvent(arg1, arg2, arg3)}/>