DOM events

onDoubleClick

Observe double clicks as an optional shortcut. Keep a separate single-click control for essential actions; two click events may occur before the double-click handler.

Formal Syntax & Structure

react syntaxreact
onDoubleClick={handler}

Working Example

Example Snippetreact
export default function App(){return <button onClick={()=>console.log('Open')} onDoubleClick={()=>console.log('Shortcut')}>Open report</button>}
React Reference