Differences between Om and React

There are a few areas where Om does things differently than React. Let's dig into those in the following sections.

Components

Om components are not strictly React components. Om creates a hidden object that implements React's interface, and that interface delegates to the reified object returned from an Om component constructor. For the most part, this is an implementation detail, and we don't need to worry about it.

State models

React is somewhat less opinionated about its state and where it is stored. Om is strongly opinionated that you should have one consistent source of state—the application state atom. Every component on the page reads and writes to that atom, which provides a consistent view of our application ...

Get Learning ClojureScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.