<button
type="button"
class="btn btn-dark"
style={{ marginLeft: "100px" }}
onClick={e => AddToCollection(e, res)}
>
<i className="fa fa-plus" />{" "}
</button>
function AddToCollection(e, res) {
console.log(e);
console.log(res);
e.preventDefault();
// CALL API
}