react-scroll icon indicating copy to clipboard operation
react-scroll copied to clipboard

Link onClick typings & get ID

Open rubenavrebelo opened this issue 3 years ago • 0 comments

I'm having some problems discovering what are the types of the onClick for the component Link. I tried React.MouseEvent<HTMLDivElement> but it doesn't allow. The typings.d.ts shows that supposedly it does not receive any arguments.

I need to save the ID of the component I'm jumping after clicking but I have no idea what are the correct typings, or how I can get the value of 'to'.

Any help would be appreciated.

rubenavrebelo avatar Mar 12 '21 02:03 rubenavrebelo