How to correct set data about item in callback when i iterate list? I found this solution:
handleKeyPress = (item) => (e) => {...}
...
onClick={handleKeyPress(item)}
Is it not bast way maybe?
How to correct set data about item in callback when i iterate list? I found this solution:
handleKeyPress = (item) => (e) => {...}
...
onClick={handleKeyPress(item)}
Is it not bast way maybe?