TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Om No! Trouble in paradise with ClojureScript and React.js

18 点作者 coffeescripter超过 10 年前

3 条评论

swannodette超过 10 年前
Rather than repeat my response to the solid criticism here I&#x27;ll link to the reddit conversation where I talk about some of the solutions and pending solutions <a href="https://www.reddit.com/r/Clojure/comments/2jq0cu/om_no_trouble_in_paradise_with_clojurescript_and/" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Clojure&#x2F;comments&#x2F;2jq0cu&#x2F;om_no_troub...</a>
viksit超过 10 年前
I agree. I&#x27;ve had a few troubles with Om, and while dnolen and the community have been super helpful on IRC and lists, there are some basic things that I personally felt trapped by.<p>- The inability to cleanly have om components co-exist with a static template, rather than having to render the entire thing using sablono or om&#x2F;goog is one. The rationale is that multiple roots aren&#x27;t good for you, but the alternative is to render your entire template within clojurescript code which can be a pain if you&#x27;re working with someone who thinks in html&#x2F;css.<p>- The API for IResolve is currently in super early alpha, and while there are some examples [1], one of the the recommended solutions [2] is to use NativeStore or Derive, which seems overkill for simpler use cases such as mine.<p>(It isn&#x27;t my intention to be <i>overtly</i> critical of a great library - I like it a lot. I&#x27;ve used it to some extent and faced a bunch of issues, which I hope will get resolved over time as the APIs and design become more stable.)<p>[1] <a href="https://github.com/swannodette/om/blob/master/examples/two_lists/src/core.cljs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;swannodette&#x2F;om&#x2F;blob&#x2F;master&#x2F;examples&#x2F;two_l...</a> [2] <a href="https://groups.google.com/forum/#!topic/clojurescript/WCz57-k8leY" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!topic&#x2F;clojurescript&#x2F;WCz57-...</a>
dang超过 10 年前
<a href="https://hn.algolia.com/?q=trouble+in+paradise+clojurescript#!/story/forever/0/trouble%20in%20paradise%20clojurescript" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=trouble+in+paradise+clojurescript#...</a>