27 ms·
> "HTML in code BAD" reaction That's what it is, just an automatic reaction without any real practical argument. Do yourself a favour and "unlearn" that. Open
by foxdonut00 11y ago
> "HTML in code BAD" reaction
That's what it is, just an automatic reaction without any real practical argument. Do yourself a favour and "unlearn" that. Open your mind. You're doing yourself a huge disservice by turning away from new ideas with these knee-jerk reactions. Working with views as functions of data gives you much more than it takes away.
- SomeCallMeTim 11y agoI'm considering doing exactly that (unlearning the reaction). Too many people are agreeing with you for me to ignore it. On the other hand, every time I turn around I think of more things that it "takes away." This time it's an entire category of tool: The visual layout editor. I like it when my code can be data-driven, and data-driven using a standard format that can be saved using a (visual) tool. I especially like it when my artists can tweak the page layout for me, but I don't like the idea of giving the artists files full of JavaScript or JSX to tweak. Are there artist-friendly tools that can edit the layout of a React site/app, where the JSX can be modified in-place using the tool? It doesn't strike me as an impossible-to-solve problem, but it could be tricky to do well.