Open frantic opened 2 years ago
Is your feature request related to a problem? Please describe.
click-to-component
Describe the solution you'd like
Make <ClickToComponent /> accept an onClick callback that would get the element, component, file path, etc. as arguments.
<ClickToComponent />
onClick
Describe alternatives you've considered
Intercepting navigation events or patching window.open: both seem fragile and miss information about the target HTMLElement.
window.open
Is your feature request related to a problem? Please describe.
click-to-component
in web environments like ReplitDescribe the solution you'd like
Make
<ClickToComponent />
accept anonClick
callback that would get the element, component, file path, etc. as arguments.Describe alternatives you've considered
Intercepting navigation events or patching
window.open
: both seem fragile and miss information about the target HTMLElement.