DOM events
onCompositionEnd
Observe the completion or cancellation of composition. Do not equate this event with form submission; read the input value through the normal change or submit path.
Formal Syntax & Structure
react syntaxreact
onCompositionEnd={handler}Working Example
Example Snippetreact
export default function App(){return <input aria-label='Search' onCompositionEnd={e=>console.log('Composition ended',e.currentTarget.value)}/>}