How to get custom data-id of a element value in action?

I have a anchor tag and onClick. I want to get data-id along with state in actions.

Hi @sanjeevsetu

Could you provide more detail about what you’re trying to do please. Is the data you’re trying to access already in the state? Can you provide a link to a repo so that community members can see your code and clone your project in order to try to help you.

See here for the kind of info that it’s useful to provide.

Thanks for reply. It is solved now.