4 ms·
"Nothin to see here! Check out index.js" Bad sign for me. There's many valid reasons to have a markup available for we applications. Embedding layout this deep
by kowdermeister 11y ago
"Nothin to see here! Check out index.js"
Bad sign for me. There's many valid reasons to have a markup available for we applications. Embedding layout this deep into code is just messy for me. The best acceptable way (for me) so far is React.
- joshstrange 11y agoYou mention react but it's does the same thing does it not? JSX is transformed into stuff like React.DOM.li('text', {/options/}) (<- I've only played with react and only written JSX so IDK if that's even right) which looks very similar to what is shown here.
- kowdermeister 11y agoNot entirely the same. React forces the template into a single render function. In this case the whole code is about element rendering. Presentation layer generating code can be anywhere, that's why I think it's messy. Of course some might like it for some use cases.