om

    4热度

    1回答

    假设我有一些通过图书馆获取纯react.js组件: var MyPureJavaScriptComponent = React.createClass({ render: function() { //... } }); 但我希望用om.next,其中反应的组分都通过defui宏观构造: (defui MyComponent Object (

    1热度

    1回答

    我想了解Om Next中的规范化,标识和查询概念。每次我想我拥有它时,我都会陷入一种似乎困扰着我的新形势。 我有一个返回下列数据的远程: {:users [ {:id 1, :email "[email protected]", :role 1}, {:id 3, :email "[email protected]", :role 1},

    2热度

    1回答

    我尝试om's basic tutorial,甚至在更改任何代码之前运行错误。 我按照说明运行lein new figwheel om-tut -- --om,cd om-tut和lein figwheel。 http://localhost:3449/然后显示html文本,而不是它应该显示的应用程序状态文本。此外,当我将我的开发工具打开到控制台时,我会看到以下屏幕截图中显示的错误消息。 这是出乎

    1热度

    2回答

    在嗡接着,如数据时: {:table {:name "Disk Performance Table" :data [:statistics :performance]} :chart {:name "Combined Graph" :data [:statistics :performance]} :statistics {:performance {:cp

    0热度

    1回答

    在Clojure(而不是ClojureScript)中,如何检查给定组件是否实现协议? (defui MyComp static my-protocol (aaa [this] [])) (satisfies? my-protocol MyComp) ;; false (satisfies? om.next.protocols/IReactChildren MyComp)

    1热度

    1回答

    正如我刚开始完全明白的那样,om.core/build和om.next的工厂函数返回引用组件函数/类的React元素对象,并返回the actual component is only instantiated later by React's reconciler。即,(om.core/build some-component data)实际上不会立即拨打some-component。 但是,我

    1热度

    1回答

    试一试Om &反应教程https://www.codementor.io/reactjs/tutorial/build-single-page-app-with-react-om-clojurescript。编译clojurescript时,出现错误clojure.lang.ExceptionInfo: Don't know how to create ISeq from: clojure.lan

    1热度

    1回答

    使用Om,我已经设置了一个组件,当用户按下按钮时,我想要显示它。效果应该是从滑入div 。在Om项目中构建这个最好的方法是什么? 我不能做喜欢的事,哈克: (let [the-div (. js/document (.getElementById "the-div"))] (.setAttribute dashboard "width" "500px")) 因为我觉得OM设置组件的影

    0热度

    1回答

    我在使用Om.next中的输入字段的数据更新状态时遇到问题。 在Om.next阅读状态通过查询解决,查询只是使组件来实现获取国家独立方面的,这是伟大的,因为这意味着该组件并不需要知道状态原子的结构,必须理解直接与之相关的州原子的局部片段。 不幸的是,我还没有能够确定一种方法来做到这一点在相反的方向,即基于用户与组件的交互作用来突变状态,而不是将它与状态原子中组件的位置耦合。 Web上的大多数示例都

    1热度

    1回答

    我如何使用Reagent,Om,Rum,Quiescent或Brutha的不同React版本?因为这