3 ms·
They're most of the way to doing it correctly! What's missing is a few edge cases, such as ensuring the click is happening without modifier keys. This is how r
by ericwood 4y ago
They're most of the way to doing it correctly! What's missing is a few edge cases, such as ensuring the click is happening without modifier keys.
This is how react-router handles it: https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/dom.ts#L32 https://github.com/remix-run/react-router/blob/main/packages...