Reagent – JavaScript Testing Utilities for React
github.com
github.com
(defn simple-component []
[:div
[:p "I am a component!"]
[:p.someclass
"I have " [:strong "bold"]
[:span {:style {:color "red"}} " and red "] "text."]])To me looks very far from "neat".
let SimpleComponent = () => <div>
<p>I am a component!</p>
<p className="someClass">
I have <strong>bold</strong> <span style={{color: 'red'}}>and red</span> text.
</p>
</div>
Not having to manage commas all the time is a strong point of both vs. what we were doing with nested JavaScript objects/arrays/function calls before JSX.