React: Building Modern Web Applications
by Jonathan Hayward, Artemij Fedosejev, Narayan Prusty, Adam Horton, Ryan Vice, Ethan Holmes, Tom Bray
Om
Om is a wrapper that makes ReactJS available for ClojureScript. Apart from the fact that ClojureScript is usually fast, a certain part of Om is actually about two times faster than in JavaScript. The difference has to do with identifying changes so as to optimally and appropriately update the DOM when ReactJS does that. The reason is that ReactJS, in its diffing algorithm (by dealing with mutable JavaScript data structures), has to perform a deep comparison to see what, if anything, in the (pure JavaScript) synthetic virtual DOM has changed.
This is still lightning fast compared to direct DOM manipulations, so fast that it's really not the bottleneck for most ReactJS users. But it's faster in Om. The reason is that ClojureScript, like a good ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access