user19404608
user19404608

Reputation:

What exactly is a non-synthetic event (event managed outside react lib)?

I know that a synthetic event is for example, onClick={handlerFunction}

The question is to understand React batching.

Upvotes: 0

Views: 130

Answers (1)

Quentin
Quentin

Reputation: 944076

An Event is an API for describing "things that happen" (like clicks).

A native event is one the browser creates.

A synthetic event is a compatibility API that React generates around native events to normalise differences between browsers.

Upvotes: 2

Related Questions