The React docs specifies three "composition events".
onCompositionEnd onCompositionStart onCompositionUpdate
https://facebook.github.io/react/docs/events.html#composition-events
What does composition imply and when do these events occur?
The React docs specifies three "composition events".
onCompositionEnd onCompositionStart onCompositionUpdate
https://facebook.github.io/react/docs/events.html#composition-events
What does composition imply and when do these events occur?
Those events would fire when you type non-latin characters like Japanese with IME input to "compose" a word with one or more than two letters. I made a simple demo gif below, please take a look to get a better idea. demo of when CompositionEvent occurs