Re:Build your own web framework
by throw_m239339 on Friday July 29, 2022 @02:29PM
(#32280285)
React can be used as a templating library server-side in a node environment (like handlebars). It's a bit heavy for the task but it works.
[ Parent
| on HN ]
A huge benefit React (and anything else that uses JSX) has over text-based templating is that you can strictly lint/typecheck JSX because ultimately it's just syntactic sugar over plain JS.
Re:Build your own web framework
by likeclockwork on Friday July 29, 2022 @06:32PM
(#32282492)
You can typecheck anything there exists a typechecker for.
Vue templates are typechecked for example.