Suppose I have access to the clean response.js components through some library:
var MyPureJavaScriptComponent = React.createClass({
render: function() {
}
});
But I want to use om.next, where the React components are constructed using a macro defui:
(defui MyComponent
Object
(render [this]
(div nil "Hello, world!")))
Question: What is the best way to get MyPureJavaScriptComponentin om.next? It would be very nice (at least aesthetically) if it could be wrapped inside its own call defuiso that it is MyPureJavaScriptComponentat the same level as every other om.next component. Is this possible (and would it be the best way to do this)?
source
share