Hacker News new | ask | show | jobs
by Accacin 1611 days ago
I'd say that using Next for a static site is just as over engineered, personally.
1 comments

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....
> 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.