I have to pass few values on clicking a button in ReactJS Functional Component, below is the code snippet.
<span className="edit" onClick={ onClickEdit(value.title, value.details)}>
<img src={editImg} height="15" width="15" />
</span>
This is showing an error. As I know we can't use 'this' keyword in Functional Component. Please help with this.
onClick={() => onClickEdit(value.title, value.details)}