There&#x27;s cljc which is a conditional reader that lets you code in clj and cljs in the same file.<p>It&#x27;s not that difficult to write a library that runs on both.<p>But there are differences in the runtimes, of course.<p>Some examples:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;stuartsierra&#x2F;component" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;stuartsierra&#x2F;component</a>
<a href="https:&#x2F;&#x2F;github.com&#x2F;plumatic&#x2F;schema" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;plumatic&#x2F;schema</a> (uses .cljx, the precursor to .cljc)