I want to read the onClick event value properties. But when I click on it, I see something like this on the console:
SyntheticMouseEvent {dispatchConfig: Ob
Simply create a function like this
function methodName(params) { //the thing you wanna do }
and call it in the place you need
< Icon onClick = { () => { methodName(theParamsYouwantToPass); } }/ >