What should an om component return to render nothing?
问题 Is it possible to write a component that renders nothing, for example, if its cursor data is empty ? I can not do (defn count-or-nothing [list-cursor owner] (reify om/IRender (render [_] (if (not (empty? list-cursor)) (dom/div nil "You have some elements !"))))) The if clause returns nil, which causes an error message Uncaught Error: Invariant Violation: ReactCompositeComponent.render(): A valid ReactComponent must be returned. You may have returned null, undefined, an array, or some other