3 ms·
They don't look bad in ClojureScript, IMO. JS: const sampleComponent = () => { return isTrue && <p>True!</p> }; CLJS: (defn sample-component [
by christophilus 9y ago
They don't look bad in ClojureScript, IMO.
JS:
const sampleComponent = () => {
return isTrue && <p>True!</p>
};
CLJS:
(defn sample-component [is-true?]
(when is-true? [:p "True!"]))
Any language that has if expressions would be preferable to JS in this case, I think.