DEV Community

Discussion on: [RELEASE] GlueDOM: JSX alternative to make non-trivial components easier to read and maintain

Collapse
 
chrisczopp profile image
chris-czopp

In my view it works well when writing a function component that doesn't contain conditional logic (especially nested). Then, instead of HTMLish it becomes hard to read due to overused logical and ternary operators. If you want to use if statements, it becomes a mix of HTML and JavaScript and it doesn't look like a markup language anymore.

Thread Thread
 
sroehrl profile image
neoan

Agreed! The most common tasks any templating must fulfill is conditional rendering and iteration. Both aren't solved well in JSX.

Thread Thread
 
seanmclem profile image
Seanmclem

Neither trouble me at all in jsx. There are very easy ways to implement both things