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
You can simply do it if you are using ES6
.
export default class Container extends Component {
state = {
data: [
// ...
]
}
handleItemChange = (e, data) => {
// here the data is available
// ....
}
render () {
return (
{
this.state.data.map((item, index) => (
this.handItemChange(event,
item)} value={item.value}/>
))
}
);
}
}