4 ms·
Quite a subjective opinion. To me looks very far from "neat".
by Ronsenshi 11y ago
Quite a subjective opinion.
To me looks very far from "neat".
- divs1210 11y agoCompare with equivalent JS/JSX and you'll see what 'neat' means in this context.
- insin 11y agoThey both look neat to me. 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.