Hacker News new | ask | show | jobs
by mmcnl 1613 days ago
I disagree. Expressing your frontend layout as code is not over engineering at all imo. It makes it easier to re-use code and is great for testability. Next is perfect for this use case. I actually think the code is quite elegant too. It's open source, so don't take my word for it, but have a look for yourself: https://github.com/minvws/nl-covid19-data-dashboard/tree/dev....
1 comments

> Expressing your frontend layout as code is not over engineering at all imo

What do you mean by this? Isn't all frontend layout expressed as code?

HTML is not code imo. With React (and thus Next) you can treat your frontend code as full-fledged functions and objects.