I wonder if there is a way to pass values to a function such as "onClick". The following code is not to be considered due to performance considerations:
<div onClick={() => handleClick(value)}/>
I'd like to write:
<div onClick={handleClick(value)}/>
But this ain't possible in React. Any solutions?
onClickevent.