2 ms·
One thing preact does differently is ditch React's "synthetic events" system. React creates its own middleman wrapper objects for every single browser event tha
by brundolf 6y ago
One thing preact does differently is ditch React's "synthetic events" system. React creates its own middleman wrapper objects for every single browser event that goes through it. This is where most of preact's size difference comes from, and I'd bet it has an impact on speed too.
More info: https://preactjs.com/guide/v10/differences-to-react/#main-differences https://preactjs.com/guide/v10/differences-to-react/#main-di...