DOM events
onCompositionStart
An IME can construct text over several input events. Mark composition as in progress rather than interpreting intermediate input as a submitted search.
Formal Syntax & Structure
react syntaxreact
onCompositionStart={handler}Working Example
Example Snippetreact
import {useState} from 'react';export default function App(){const [busy,setBusy]=useState(false);return <><input aria-label='Search' onCompositionStart={()=>setBusy(true)} onCompositionEnd={()=>setBusy(false)}/><output>{busy?'Composing':'Ready'}</output></>}